fix vk_music
This commit is contained in:
parent
f404931cfb
commit
7725691c1e
@ -37,7 +37,7 @@ class VKMusicFeedModuleConfig(FeedModuleConfig):
|
|||||||
vk_audio = VkAudio(vk_session)
|
vk_audio = VkAudio(vk_session)
|
||||||
lst = []
|
lst = []
|
||||||
for audio in vk_audio.get_iter(self.owner_id):
|
for audio in vk_audio.get_iter(self.owner_id):
|
||||||
if audio['id'] > last_id:
|
if int(audio['id']) > last_id:
|
||||||
lst = [audio] + lst
|
lst = [audio] + lst
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
@ -45,4 +45,4 @@ class VKMusicFeedModuleConfig(FeedModuleConfig):
|
|||||||
f = get_vk_audio(track['url'])
|
f = get_vk_audio(track['url'])
|
||||||
bot.send_audio(chat_id, f, duration=track['duration'], performer=track['artist'],
|
bot.send_audio(chat_id, f, duration=track['duration'], performer=track['artist'],
|
||||||
title=track['title'], timeout=40)
|
title=track['title'], timeout=40)
|
||||||
yield track['id']
|
yield int(track['id'])
|
||||||
|
Loading…
Reference in New Issue
Block a user