mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
Update lx_script.py
Fix display error in generated `lx-music-source-example.js` file by set encoding.
This commit is contained in:
parent
c286424e34
commit
c37fc785b0
@ -61,7 +61,7 @@ async def get_response(retry = 0):
|
||||
async def get_script():
|
||||
req = await get_response()
|
||||
if (req.status == 200):
|
||||
with open('./lx-music-source-example.js', 'w') as f:
|
||||
with open('./lx-music-source-example.js', 'w', encoding='utf-8') as f:
|
||||
f.write(req.text)
|
||||
f.close()
|
||||
logger.info('更新源脚本成功')
|
||||
|
Loading…
x
Reference in New Issue
Block a user