mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复netease无法解析歌曲问题
This commit is contained in:
parent
560ea274f4
commit
f91d3b495c
@ -1029,12 +1029,12 @@ export class tools extends plugin {
|
|||||||
// 动态判断后缀名
|
// 动态判断后缀名
|
||||||
const extensionPattern = /\.([a-zA-Z0-9]+)$/;
|
const extensionPattern = /\.([a-zA-Z0-9]+)$/;
|
||||||
const musicExt = url.match(extensionPattern)?.[0].replace("\.", "");
|
const musicExt = url.match(extensionPattern)?.[0].replace("\.", "");
|
||||||
logger.info(musicExt);
|
|
||||||
// 下载音乐
|
// 下载音乐
|
||||||
downloadAudio(url, this.getCurDownloadPath(e), title, 'follow', musicExt).then(async path => {
|
downloadAudio(url, this.getCurDownloadPath(e), title, 'follow', musicExt).then(async path => {
|
||||||
// 发送语音
|
// 发送语音
|
||||||
// e.reply(segment.record(path));
|
// e.reply(segment.record(path));
|
||||||
// 判断是不是icqq
|
// 判断是不是icqq
|
||||||
|
await e.reply(segment.record(path));
|
||||||
await this.uploadGroupFile(e, path);
|
await this.uploadGroupFile(e, path);
|
||||||
await checkAndRemoveFile(path);
|
await checkAndRemoveFile(path);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user