From 428021e99b01d4f7a6bebb028f5bbf3f6ea4ad23 Mon Sep 17 00:00:00 2001 From: Kittengarten Date: Thu, 19 Mar 2026 19:31:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(bilibiliparse):=20=E5=A4=84=E7=90=86?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=80=BB=E7=BB=93=E4=B8=BA=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/bilibiliparse/parse.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/bilibiliparse/parse.go b/plugin/bilibiliparse/parse.go index ab8a9bdec5..bc0409a1be 100644 --- a/plugin/bilibiliparse/parse.go +++ b/plugin/bilibiliparse/parse.go @@ -234,6 +234,10 @@ func getVideoSummary(cookiecfg *bz.CookieConfig, card bz.Card) (msg []message.Se } err = json.Unmarshal(data, &videoSummary) msg = make([]message.Segment, 0, 16) + if videoSummary.Data.ModelResult.Summary == `` { + msg = append(msg, message.Text(fmt.Sprintf("生成视频总结: %s(%d)", videoSummary.Message, videoSummary.Code))) + return + } msg = append(msg, message.Text("已为你生成视频总结\n\n")) msg = append(msg, message.Text(videoSummary.Data.ModelResult.Summary, "\n\n")) for _, v := range videoSummary.Data.ModelResult.Outline {