From ad171731ad924b9ff42ebd7c17af38d3987fc0ba Mon Sep 17 00:00:00 2001 From: TNTcraftHIM Date: Thu, 27 Aug 2020 23:32:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=8E=B0=E4=BA=86=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D=E8=B5=B0=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E4=B9=9F=E5=8F=AF=E4=BB=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- neteasemusic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neteasemusic.py b/neteasemusic.py index e9720ac..d79b1b3 100644 --- a/neteasemusic.py +++ b/neteasemusic.py @@ -278,7 +278,7 @@ async def nem(context): song_id=self.song_id) # 发送请求 request = requests.post( - url=self.url, headers=self.headers, data=data) + url=self.url, headers=self.headers, data=data, proxies=proxies, verify=False) # 初始化real_url real_url = '' # 处理返回信息 @@ -307,7 +307,7 @@ async def nem(context): file = name # 开始下载 content = requests.get( - url=real_url, headers=self.headers, proxies=proxies, verify=False).content + url=real_url, headers=self.headers).content with open(file, 'wb') as fp: fp.write(content) for __ in range(3): #最多尝试3次 @@ -333,7 +333,7 @@ async def nem(context): continue else: music = requests.request( - "GET", music['data']['url'], headers=headers, proxies=proxies, verify=False) + "GET", music['data']['url'], headers=headers) else: continue