🐞 fix:修复网易云MV无法解析

This commit is contained in:
秋刀鱼 2024-10-18 11:00:51 +08:00
parent 56ef54aecf
commit 29970ec1c5

View File

@ -1615,7 +1615,7 @@ export class tools extends plugin {
musicUrlReg2.exec(message)?.[3] || musicUrlReg2.exec(message)?.[3] ||
musicUrlReg.exec(message)?.[2] || musicUrlReg.exec(message)?.[2] ||
musicUrlReg3.exec(message)?.[2] || musicUrlReg3.exec(message)?.[2] ||
/\bid=(\d+)/.exec(message)[1]; /(?<!user)id=(\d+)/.exec(message)[1];
// 如果没有下载地址跳出if // 如果没有下载地址跳出if
if (_.isEmpty(id)) { if (_.isEmpty(id)) {
e.reply(`识别:网易云音乐,解析失败!`); e.reply(`识别:网易云音乐,解析失败!`);