From 89dd0f9fa64d537f635c5c218091d9a14652e0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Sun, 22 Dec 2024 15:50:02 +0800 Subject: [PATCH] . --- py/LunaTranslator/cishu/mdict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/LunaTranslator/cishu/mdict.py b/py/LunaTranslator/cishu/mdict.py index e02732d8..eaa59c4c 100644 --- a/py/LunaTranslator/cishu/mdict.py +++ b/py/LunaTranslator/cishu/mdict.py @@ -2308,7 +2308,7 @@ class mdict(cishubase): return None ext = os.path.splitext(url)[1].lower() if ext in (".aac", ".spx"): - varname = "var_" + base64.b64encode(url.encode()).hex() + varname = "var_" + hashlib.md5(url.encode('utf8')).hexdigest() tolongvals[varname] = base64.b64encode(file_content).decode() return 3, "javascript:safe_mdict_sound_call('{}',{})".format( ext, varname