mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 13:34:08 +00:00
我是憨批
This commit is contained in:
parent
e5b02a9d6f
commit
4fe4b5a4c0
@ -282,10 +282,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "neteasemusic",
|
"name": "neteasemusic",
|
||||||
"version": "2.9",
|
"version": "3.0",
|
||||||
"section": "daily",
|
"section": "daily",
|
||||||
"maintainer": "TNTcraftHIM",
|
"maintainer": "TNTcraftHIM",
|
||||||
"size": "25.4 kb",
|
"size": "25.3 kb",
|
||||||
"supported": true,
|
"supported": true,
|
||||||
"des-short": "网易云点歌",
|
"des-short": "网易云点歌",
|
||||||
"des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。"
|
"des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。"
|
||||||
|
@ -334,7 +334,7 @@ async def nem(context):
|
|||||||
try:
|
try:
|
||||||
content = requests.get(
|
content = requests.get(
|
||||||
url=real_url, headers=self.headers).content
|
url=real_url, headers=self.headers).content
|
||||||
with open(file, 'wb', encoding='utf8') as fp:
|
with open(file, 'wb') as fp:
|
||||||
fp.write(content)
|
fp.write(content)
|
||||||
except:
|
except:
|
||||||
print('服务器连接出错')
|
print('服务器连接出错')
|
||||||
@ -373,7 +373,7 @@ async def nem(context):
|
|||||||
';', ', ') + " - " + "**" + info['title'] + "**"
|
';', ', ') + " - " + "**" + info['title'] + "**"
|
||||||
|
|
||||||
if ccimported is False:
|
if ccimported is False:
|
||||||
with open(name, 'wb', encoding='utf8') as f:
|
with open(name, 'wb') as f:
|
||||||
f.write(music.content)
|
f.write(music.content)
|
||||||
if (path.getsize(name) / 1024) < 100:
|
if (path.getsize(name) / 1024) < 100:
|
||||||
remove(name)
|
remove(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user