From 68b019511771a0da61624f33bea01aa409b4a5ca Mon Sep 17 00:00:00 2001 From: TNTcraftHIM Date: Fri, 28 Aug 2020 00:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E5=B0=9D=E8=AF=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- list.json | 4 ++-- neteasemusic.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/list.json b/list.json index 3a51271..424c7d9 100644 --- a/list.json +++ b/list.json @@ -282,10 +282,10 @@ }, { "name": "neteasemusic", - "version": "1.6", + "version": "1.7", "section": "daily", "maintainer": "TNTcraftHIM", - "size": "22.2 kb", + "size": "22.5 kb", "supported": true, "des-short": "网易云点歌", "des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。" diff --git a/neteasemusic.py b/neteasemusic.py index fcbf00a..029445d 100644 --- a/neteasemusic.py +++ b/neteasemusic.py @@ -311,6 +311,10 @@ async def nem(context): with open(file, 'wb') as fp: fp.write(content) for __ in range(6): #最多尝试6次 + if proxynum > (len(proxy) -1): #代理自动切换至下一个 + proxynum = 0 + proxies = proxy[proxynum] + proxynum += 1 try: WangyiyunDownload().download() ccimported = True