fix: 修复无法下载script的bug

This commit is contained in:
lerdb 2024-01-22 12:44:00 +08:00
parent 2f869694d5
commit 9a9e64ac19
No known key found for this signature in database
GPG Key ID: FBBF3738C577282C

View File

@ -72,7 +72,7 @@ async def generate_script_response(request):
if (request.query.get('key') != config.read_config('security.key.value') and config.read_config('security.key.enable')):
return 'key验证失败'
try:
with open('./lx-music-source-example.js', 'r') as f:
with open('./lx-music-source-example.js', 'r', encoding='utf-8') as f:
script = f.read()
except:
return '本地无源脚本'