From 4ff94b2af674fe541953d1840a39a8ae957eb48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 3 Apr 2019 11:01:09 +0200 Subject: [PATCH] add radio --- delojza.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/delojza.py b/delojza.py index 95efbc2..d73c85d 100755 --- a/delojza.py +++ b/delojza.py @@ -156,13 +156,14 @@ def handle(urls, message, download, tumblr=False, filename=None): reply += ' to "' + hashtag + '"' reply += '...' - if hashtag == 'AUDIO' and download != download_raw: + extract = False + if hashtag in ('AUDIO', 'RADIO') and download != download_raw: + extract = True reply += ' (And also guessing you want to extract the audio)' message.reply_text(reply) filenames = download(urls, hashtag or '.', message.date, - extract=(hashtag == 'AUDIO'), - filename=filename) + extract=extract, filename=filename) if hashtag == 'TUMBLR': message.reply_text('(btw, queueing to tumblr)') for filename in filenames: