slight change in /retag (" - " instead of "-" is the artist/title split)
This commit is contained in:
parent
558e723948
commit
ae09a1d981
1 changed files with 2 additions and 3 deletions
|
@ -460,8 +460,7 @@ class DelojzaBot:
|
||||||
update.message.reply_text(tmp_reply)
|
update.message.reply_text(tmp_reply)
|
||||||
|
|
||||||
def tg_retag(self, _, update):
|
def tg_retag(self, _, update):
|
||||||
message_is_sensible = update.message.text.count("-") == 1
|
if self.last_downloaded.get(update.message.chat.id) is not None and " - " in update.message.text:
|
||||||
if self.last_downloaded.get(update.message.chat.id) is not None and message_is_sensible:
|
|
||||||
files, hashtags, tumblr_ids = self.last_downloaded[update.message.chat.id]
|
files, hashtags, tumblr_ids = self.last_downloaded[update.message.chat.id]
|
||||||
mp3s = [filename for filename in files if filename.endswith("mp3")]
|
mp3s = [filename for filename in files if filename.endswith("mp3")]
|
||||||
if len(mp3s) > 0:
|
if len(mp3s) > 0:
|
||||||
|
|
Loading…
Reference in a new issue