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