From 29c5beea958296ce9683e8f923f8c327e91a53d2 Mon Sep 17 00:00:00 2001 From: RicheyJang <773602577@qq.com> Date: Sat, 9 Apr 2022 14:22:17 +0800 Subject: [PATCH] fix: better check --- plugins/bilibili/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bilibili/send.go b/plugins/bilibili/send.go index 91ea6db..5449197 100644 --- a/plugins/bilibili/send.go +++ b/plugins/bilibili/send.go @@ -71,7 +71,7 @@ func checkBangumiStatus(sub Subscription) (msg []message.Message) { log.Warnf("获取B站番剧(%v)信息失败:%v", sub.BID, err) return nil } - if b.NewEP.Name != sub.BangumiLastIndex { // 更新了 + if len(b.NewEP.Name) > 0 && b.NewEP.Name != sub.BangumiLastIndex { // 更新了 // 生成消息 str := fmt.Sprintf("番剧「%v」更新了!\n最新一集:%v", b.Title, b.NewEP.Name) link := fmt.Sprintf("\n快去看:https://bilibili.com/bangumi/play/ep%v", b.NewEP.ID)