fix: message too long on some extreme cases

This commit is contained in:
Terry Geng
2020-03-03 16:47:24 +08:00
parent 26345e456f
commit 499186c738
4 changed files with 9 additions and 2 deletions

View File

@ -407,6 +407,8 @@ class MumbleBot:
# then no need to download
return music
self.download_in_progress = True
url = music['url']
url_hash = hashlib.md5(url.encode()).hexdigest()
@ -469,6 +471,7 @@ class MumbleBot:
music = util.get_music_tag_info(music)
var.playlist.update(music, index)
self.download_in_progress = False
return music
def async_download_next(self):