add radio

This commit is contained in:
Tomáš Mládek 2019-04-03 11:01:09 +02:00 committed by Tomáš Mládek
parent 881550f1e9
commit 4ff94b2af6

View file

@ -156,13 +156,14 @@ def handle(urls, message, download, tumblr=False, filename=None):
reply += ' to "' + hashtag + '"' reply += ' to "' + hashtag + '"'
reply += '...' 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)' reply += ' (And also guessing you want to extract the audio)'
message.reply_text(reply) message.reply_text(reply)
filenames = download(urls, filenames = download(urls,
hashtag or '.', message.date, hashtag or '.', message.date,
extract=(hashtag == 'AUDIO'), extract=extract, filename=filename)
filename=filename)
if hashtag == 'TUMBLR': if hashtag == 'TUMBLR':
message.reply_text('(btw, queueing to tumblr)') message.reply_text('(btw, queueing to tumblr)')
for filename in filenames: for filename in filenames: