debug vk audio
This commit is contained in:
parent
cfcad1994e
commit
89e839d36f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user