Skip to content

Commit 9c3095e

Browse files
committed
1.5.5
1 parent 389833c commit 9c3095e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "koishi-plugin-music-voice",
33
"description": "Provide the selected song as a voice",
4-
"version": "1.5.4",
4+
"version": "1.5.5",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
77
"files": [

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export function apply(ctx: Context, cfg: Config) {
304304
const { channelId } = session
305305
if (song.code === 0) {
306306
const { src, interval } = song.data as SongData
307-
if (!src) {
307+
if (!src || src.startsWith('无法')) {
308308
if (cfg.recall) session.bot.deleteMessage(channelId, tipMessageId)
309309
return `${h.quote(quoteId)}获取歌曲失败。`
310310
}

0 commit comments

Comments
 (0)