fix vk_music

This commit is contained in:
bakatrouble 2019-11-24 17:53:03 +03:00
parent f404931cfb
commit 7725691c1e

View File

@ -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'])