From 28cbcd8f459643407c3c54ee8dbdf22b8cfcb9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 21 May 2024 02:44:59 +0800 Subject: [PATCH] Update mdict.py --- LunaTranslator/LunaTranslator/cishu/mdict.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/cishu/mdict.py b/LunaTranslator/LunaTranslator/cishu/mdict.py index 46985de9..d46c46a9 100644 --- a/LunaTranslator/LunaTranslator/cishu/mdict.py +++ b/LunaTranslator/LunaTranslator/cishu/mdict.py @@ -2516,8 +2516,8 @@ class mdict(cishubase): base64_content = base64.b64encode(file_content).decode('utf-8') import uuid uid=str(uuid.uuid4()) - with open(uid+'.mp3','wb') as ff: - ff.write(file_content) + # with open(uid+'.mp3','wb') as ff: + # ff.write(file_content) audio=f'' html_content = audio+html_content.replace(url, f"javascript:document.getElementById('{uid}').play()") file_content=None