add radio
This commit is contained in:
parent
881550f1e9
commit
4ff94b2af6
1 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue