fix no-arg /retag
This commit is contained in:
parent
ef454338ae
commit
c7297f4d27
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue