use encrypturl if cdnurl does not produce correct md5

This commit is contained in:
Yuxin Wu
2020-06-29 11:07:44 -07:00
parent 64e5e5eb3f
commit e46378aa25
2 changed files with 12 additions and 6 deletions
-2
View File
@@ -116,8 +116,6 @@ SELECT {} FROM message
md5, catalog, name, cdnUrl, encrypturl, aeskey = row
if cdnUrl or encrypturl:
self.emoji_url[md5] = (cdnUrl, encrypturl, aeskey)
if not cdnUrl and encrypturl:
logger.warning(f"Emoji {md5} has encrypturl only.")
if name and catalog in HAS_EMOJI_CATALOG:
self.internal_emojis[md5] = name