mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
revert: fix: 修复wy源 sky 音质的获取
This commit is contained in:
parent
24b7082d0e
commit
48d8434e95
@ -38,7 +38,7 @@ tools = {
|
|||||||
'lossless': 'flac',
|
'lossless': 'flac',
|
||||||
'hires': 'flac24bit',
|
'hires': 'flac24bit',
|
||||||
"jyeffect": "dolby",
|
"jyeffect": "dolby",
|
||||||
"jysky": "sky",
|
"sky": "sky",
|
||||||
"jymaster": "master",
|
"jymaster": "master",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -58,7 +58,7 @@ async def url(songId, quality):
|
|||||||
'headers': {
|
'headers': {
|
||||||
'Cookie': config.read_config('module.wy.user.cookie') if (not variable.use_cookie_pool) else random.choice(config.read_config('module.cookiepool.wy'))['cookie'],
|
'Cookie': config.read_config('module.wy.user.cookie') if (not variable.use_cookie_pool) else random.choice(config.read_config('module.cookiepool.wy'))['cookie'],
|
||||||
},
|
},
|
||||||
'form': eapiEncrypt(path, json.dumps())
|
'form': eapiEncrypt(path, json.dumps(requestBody))
|
||||||
})
|
})
|
||||||
body = req.json()
|
body = req.json()
|
||||||
if (not body.get("data") or (not body.get("data")) or (not body.get("data")[0].get("url"))):
|
if (not body.get("data") or (not body.get("data")) or (not body.get("data")[0].get("url"))):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user