debug vk audio
This commit is contained in:
parent
cfcad1994e
commit
89e839d36f
@ -38,12 +38,12 @@ 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):
|
||||||
|
logging.warning(audio)
|
||||||
if int(audio['id']) > last_id:
|
if int(audio['id']) > last_id:
|
||||||
lst = [audio] + lst
|
lst = [audio] + lst
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
for track in lst:
|
for track in lst:
|
||||||
logging.warning(track)
|
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user