fix no-arg /retag

This commit is contained in:
Tomáš Mládek 2019-11-07 16:01:27 +01:00
parent ef454338ae
commit c7297f4d27

View file

@ -613,7 +613,7 @@ class DelojzaBot:
files, hashtags, tumblr_ids = self.last_downloaded[update.message.chat.id]
mp3s = [filename for filename in files if filename.endswith("mp3")]
if len(mp3s) > 0:
arg_raw = re.sub(r'^/[\w]+ ', '', update.message.text).strip()
arg_raw = re.sub(r'^/[@\w]+ ?', '', update.message.text).strip()
artist, title = None, None
reverse = len(arg_raw) == 0