From fe6479c7ffef65ff32fe42b340ca8bbab85489cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 28 Mar 2018 18:51:22 +0200 Subject: [PATCH] default audio dls to /#AUDIO --- delojza.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/delojza.py b/delojza.py index b835991..cf92d9d 100755 --- a/delojza.py +++ b/delojza.py @@ -152,6 +152,9 @@ def handle_rest(bot, update): update.message.reply_text('Ignoring...') return + if not hashtag and update.message.audio is not None: + hashtag = 'AUDIO' + reply = 'Downloading' if hashtag: mkdir_p(f'{OUT_DIR}/{hashtag}')