mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-07 06:52:11 +08:00
feat: QQ音乐歌词功能
This commit is contained in:
5
main.py
5
main.py
@ -97,7 +97,10 @@ async def handle(request):
|
||||
return handleResult({"code": 1, "msg": "lxm请求头验证失败", "data": None}, 403)
|
||||
|
||||
try:
|
||||
return handleResult(await getattr(modules, method)(source, songId, quality))
|
||||
if (method in dir(modules)):
|
||||
return handleResult(await getattr(modules, method)(source, songId, quality))
|
||||
else:
|
||||
return handleResult(await modules.other(method, source, songId, quality))
|
||||
except:
|
||||
logger.error(traceback.format_exc())
|
||||
return handleResult({'code': 4, 'msg': '内部服务器错误', 'data': None}, 500)
|
||||
|
Reference in New Issue
Block a user