mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复波点音乐部分问题
This commit is contained in:
parent
c51bc70ef4
commit
5bdae1ee0b
@ -657,22 +657,18 @@ export class tools extends plugin {
|
|||||||
if (res.data.lowUrl === null || res.data.highUrl === null) {
|
if (res.data.lowUrl === null || res.data.highUrl === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 捕获一些未知错误
|
// 波点音乐信息
|
||||||
try {
|
const { songName, artist, coverUrl, highUrl, lowUrl, shortLowUrl } = res.data;
|
||||||
// 波点音乐信息
|
curMsg.reply([`${songName}-${artist}\n`, segment.image(coverUrl)]);
|
||||||
const { songName, artist, coverUrl, highUrl, lowUrl, shortLowUrl } = res.data;
|
// 下载 && 发送
|
||||||
curMsg.reply([`${songName}-${artist}\n`, segment.image(coverUrl)]);
|
await thisMethod.downloadVideo(lowUrl).then(path => {
|
||||||
// 下载 && 发送
|
curMsg.reply(segment.video(path + "/temp.mp4"));
|
||||||
await thisMethod.downloadVideo(lowUrl).then(path => {
|
});
|
||||||
curMsg.reply(segment.video(path + "/temp.mp4"));
|
})
|
||||||
});
|
.catch(err => {
|
||||||
} catch (err) {
|
curMsg.reply("发生网络错误,请重新发送!");
|
||||||
curMsg.reply("发生网络错误,请重新发送!");
|
thisMethod.finish("bodianMusicContext");
|
||||||
} finally {
|
|
||||||
thisMethod.finish("bodianMusicContext");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
this.finish("bodianMusicContext");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user