mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 20:38:51 +00:00
添加自动多次尝试功能
This commit is contained in:
parent
3b141c6dc0
commit
68b0195117
@ -282,10 +282,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "neteasemusic",
|
"name": "neteasemusic",
|
||||||
"version": "1.6",
|
"version": "1.7",
|
||||||
"section": "daily",
|
"section": "daily",
|
||||||
"maintainer": "TNTcraftHIM",
|
"maintainer": "TNTcraftHIM",
|
||||||
"size": "22.2 kb",
|
"size": "22.5 kb",
|
||||||
"supported": true,
|
"supported": true,
|
||||||
"des-short": "网易云点歌",
|
"des-short": "网易云点歌",
|
||||||
"des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。"
|
"des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。"
|
||||||
|
@ -311,6 +311,10 @@ async def nem(context):
|
|||||||
with open(file, 'wb') as fp:
|
with open(file, 'wb') as fp:
|
||||||
fp.write(content)
|
fp.write(content)
|
||||||
for __ in range(6): #最多尝试6次
|
for __ in range(6): #最多尝试6次
|
||||||
|
if proxynum > (len(proxy) -1): #代理自动切换至下一个
|
||||||
|
proxynum = 0
|
||||||
|
proxies = proxy[proxynum]
|
||||||
|
proxynum += 1
|
||||||
try:
|
try:
|
||||||
WangyiyunDownload().download()
|
WangyiyunDownload().download()
|
||||||
ccimported = True
|
ccimported = True
|
||||||
|
Loading…
Reference in New Issue
Block a user