From 7725691c1e7b05046f866f1b13700adc2987a9a7 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sun, 24 Nov 2019 17:53:03 +0300 Subject: [PATCH] fix vk_music --- feeds/modules/vk_music.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feeds/modules/vk_music.py b/feeds/modules/vk_music.py index 9da5a3f..64ed317 100644 --- a/feeds/modules/vk_music.py +++ b/feeds/modules/vk_music.py @@ -37,7 +37,7 @@ class VKMusicFeedModuleConfig(FeedModuleConfig): vk_audio = VkAudio(vk_session) lst = [] for audio in vk_audio.get_iter(self.owner_id): - if audio['id'] > last_id: + if int(audio['id']) > last_id: lst = [audio] + lst else: break @@ -45,4 +45,4 @@ class VKMusicFeedModuleConfig(FeedModuleConfig): f = get_vk_audio(track['url']) bot.send_audio(chat_id, f, duration=track['duration'], performer=track['artist'], title=track['title'], timeout=40) - yield track['id'] + yield int(track['id'])