mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
.
This commit is contained in:
parent
970afac71a
commit
89dd0f9fa6
@ -2308,7 +2308,7 @@ class mdict(cishubase):
|
|||||||
return None
|
return None
|
||||||
ext = os.path.splitext(url)[1].lower()
|
ext = os.path.splitext(url)[1].lower()
|
||||||
if ext in (".aac", ".spx"):
|
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()
|
tolongvals[varname] = base64.b64encode(file_content).decode()
|
||||||
return 3, "javascript:safe_mdict_sound_call('{}',{})".format(
|
return 3, "javascript:safe_mdict_sound_call('{}',{})".format(
|
||||||
ext, varname
|
ext, varname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user