any tag containing AUDIO/RADIO is now extracted

This commit is contained in:
Tomáš Mládek 2019-05-01 10:51:40 +02:00
parent 233116d680
commit a54ef0d39f

View file

@ -174,7 +174,7 @@ class DelojzaBot:
reply += '...'
extract = False
if hashtag in ('AUDIO', 'RADIO') and download_fn != self.download_raw:
if any([tag in hashtag for tag in ('AUDIO', 'RADIO')]) and download_fn != self.download_raw:
extract = True
reply += ' (And also guessing you want to extract the audio)'