NeteaseMusic热更新,修改逻辑

This commit is contained in:
TNTcraftHIM 2020-09-01 16:19:12 +08:00
parent 2e4cd03a97
commit 3373703e2a
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@
}, },
{ {
"name": "neteasemusic", "name": "neteasemusic",
"version": "3.5", "version": "3.6",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "27.1 kb", "size": "27.1 kb",

View File

@ -388,7 +388,7 @@ async def nem(context):
music = json.loads(music.content) music = json.loads(music.content)
if not music['data']['url']: if not music['data']['url']:
music = requests.request( music = requests.request(
"GET", "https://music.163.com/song/media/outer/url?id=" + str(info['id']) + ".mp3", headers=headers, proxies=proxies, verify=False) "GET", "https://music.163.com/song/media/outer/url?id=" + str(info['id']) + ".mp3", headers=headers, verify=False)
if music.status_code != 200: if music.status_code != 200:
continue continue
else: else: