mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
fix: 修复无法下载script的bug
This commit is contained in:
parent
2f869694d5
commit
9a9e64ac19
@ -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')):
|
if (request.query.get('key') != config.read_config('security.key.value') and config.read_config('security.key.enable')):
|
||||||
return 'key验证失败'
|
return 'key验证失败'
|
||||||
try:
|
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()
|
script = f.read()
|
||||||
except:
|
except:
|
||||||
return '本地无源脚本'
|
return '本地无源脚本'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user