Skip to content

Commit

Permalink
revert: fix: 修复wy源 sky 音质的获取
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq committed Feb 18, 2024
1 parent 24b7082 commit 48d8434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
'lossless': 'flac',
'hires': 'flac24bit',
"jyeffect": "dolby",
"jysky": "sky",
"sky": "sky",
"jymaster": "master",
},
}
Expand All @@ -58,7 +58,7 @@ async def url(songId, quality):
'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'],
},
'form': eapiEncrypt(path, json.dumps())
'form': eapiEncrypt(path, json.dumps(requestBody))
})
body = req.json()
if (not body.get("data") or (not body.get("data")) or (not body.get("data")[0].get("url"))):
Expand Down

0 comments on commit 48d8434

Please sign in to comment.