From abbaf2bdc9d239bcbe1fc5ea683e4cc1024cfc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E9=B1=BC?= <9903082+qdyovo@user.noreply.gitee.com> Date: Wed, 16 Oct 2024 10:58:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88pref=EF=BC=9A=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E6=9D=9C=E6=AF=94=E9=9F=B3=E8=B4=A8=E6=97=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=A4=BA=E5=B9=B6=E4=B8=8D=E5=8F=91?= =?UTF-8?q?=E9=80=81=E7=BE=A4=E8=AF=AD=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index b34a57b..2cb9db2 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1681,7 +1681,11 @@ async neteaseStatus(e, reck) { url = await this.musicTempApi(e, title, "网易云音乐"); } else { // 拥有ck,并且有效,直接进行解析 - e.reply([segment.image(coverUrl), `${this.identifyPrefix}识别:网易云音乐,${title}\n当前下载音质: ${AudioLevel}\n预估大小: ${AudioSize}MB`]); + let audioInfo = AudioLevel; + if (AudioLevel == '杜比全景声') { + audioInfo += '\n(杜比下载文件为MP4,编码格式为AC-4,需要设备支持才可播放)'; + } + e.reply([segment.image(coverUrl), `${this.identifyPrefix}识别:网易云音乐,${title}\n当前下载音质: ${audioInfo}\n预估大小: ${AudioSize}MB`]); } // 动态判断后缀名 const extensionPattern = /\.([a-zA-Z0-9]+)$/; @@ -1689,7 +1693,9 @@ async neteaseStatus(e, reck) { // 下载音乐 downloadAudio(url, this.getCurDownloadPath(e), title, 'follow', musicExt).then(async path => { // 发送语音 - await e.reply(segment.record(path)); + if (!musicExt == 'mp4') { + await e.reply(segment.record(path)); + } // 上传群文件 await this.uploadGroupFile(e, path); // 删除文件