我是憨批bug fix (#47)

Co-authored-by: TNTcraftHIM <TNTcraftHIM@users.noreply.github.com>
This commit is contained in:
AAA 2020-08-29 19:49:38 +08:00 committed by GitHub
parent 7cf9188573
commit 2cc2cb5e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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。"

View File

@ -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)