This commit is contained in:
恍兮惚兮 2024-12-22 15:50:02 +08:00
parent 970afac71a
commit 89dd0f9fa6

View File

@ -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