chore: Merge #19

Update lx_script.py
This commit is contained in:
梓澄 2024-01-07 14:37:24 +08:00 committed by GitHub
commit 35fb654ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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('更新源脚本成功')