From c7297f4d27194649f2f08a341d41a83497cd8c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 7 Nov 2019 16:01:27 +0100 Subject: [PATCH] fix no-arg /retag --- delojza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delojza.py b/delojza.py index d782886..4f4d0b8 100755 --- a/delojza.py +++ b/delojza.py @@ -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