From 7cf9188573ee46494a9c1e9757cd3eccb0034c32 Mon Sep 17 00:00:00 2001 From: AAA <35992542+TNTcraftHIM@users.noreply.github.com> Date: Sat, 29 Aug 2020 19:44:20 +0800 Subject: [PATCH] =?UTF-8?q?NeteaseMusic=20Bug=E4=BF=AE=E5=A4=8D=20(#46)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: TNTcraftHIM --- list.json | 4 ++-- neteasemusic.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/list.json b/list.json index e24fedd..04eb228 100644 --- a/list.json +++ b/list.json @@ -282,10 +282,10 @@ }, { "name": "neteasemusic", - "version": "2.8", + "version": "2.9", "section": "daily", "maintainer": "TNTcraftHIM", - "size": "25.3 kb", + "size": "25.4 kb", "supported": true, "des-short": "网易云点歌", "des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。" diff --git a/neteasemusic.py b/neteasemusic.py index 6e6e09d..614053d 100644 --- a/neteasemusic.py +++ b/neteasemusic.py @@ -190,6 +190,7 @@ async def nem(context): ccimported = False await bot.send_message(context.chat_id, '(`PyCryptodome`支持库未安装,音乐曲库/音质受限\n请使用 `-sh` `pip3` `install` `pycryptodome` 安装,或自行ssh安装)') name = info['title'].replace('/', " ") + ".mp3" + name = name.encode('utf-8').decode('utf-8') if ccimported: # 尝试使用高清音质下载 songid = str(info['id'])