fix no-arg /retag

neu
Tomáš Mládek 2019-11-07 16:01:27 +01:00
parent ef454338ae
commit c7297f4d27
1 changed files with 1 additions and 1 deletions

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