Skip to content

Commit

Permalink
fix: 修复无法下载script的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lerdb committed Jan 22, 2024
1 parent 2f86969 commit 9a9e64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lx_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '本地无源脚本'
Expand Down

0 comments on commit 9a9e64a

Please sign in to comment.