debug vk audio

This commit is contained in:
bakatrouble 2020-02-19 21:40:30 +03:00
parent fb38e00776
commit cfcad1994e

View File

@ -1,3 +1,4 @@
import logging
import os import os
import tempfile import tempfile
@ -42,6 +43,7 @@ class VKMusicFeedModuleConfig(FeedModuleConfig):
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)