debug vk audio

This commit is contained in:
bakatrouble 2020-02-19 21:43:26 +03:00
parent cfcad1994e
commit 89e839d36f

View File

@ -38,12 +38,12 @@ class VKMusicFeedModuleConfig(FeedModuleConfig):
vk_audio = VkAudio(vk_session)
lst = []
for audio in vk_audio.get_iter(self.owner_id):
logging.warning(audio)
if int(audio['id']) > last_id:
lst = [audio] + lst
else:
break
for track in lst:
logging.warning(track)
f = get_vk_audio(track['url'])
bot.send_audio(chat_id, f, duration=track['duration'], performer=track['artist'],
title=track['title'], timeout=40)