diff --git a/list.json b/list.json index 04eb228..8fd2c32 100644 --- a/list.json +++ b/list.json @@ -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。" diff --git a/neteasemusic.py b/neteasemusic.py index 614053d..8339ab1 100644 --- a/neteasemusic.py +++ b/neteasemusic.py @@ -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)