mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-07 15:04:24 +08:00
feat: 将所有api请求更换为异步,提高速度
This commit is contained in:
@ -30,7 +30,7 @@ tools = {
|
||||
|
||||
async def url(songId, quality):
|
||||
target_url = f'''https://bd-api.kuwo.cn/api/service/music/downloadInfo/{songId}?isMv=0&format={tools['extMap'][quality]}&br={tools['qualityMap'][quality]}'''
|
||||
req = Httpx.request(target_url, {
|
||||
req = await Httpx.AsyncRequest(target_url, {
|
||||
'method': 'GET',
|
||||
'headers': {
|
||||
'User-Agent': 'okhttp/3.10.0',
|
||||
|
Reference in New Issue
Block a user