Skip to content

Commit

Permalink
fix: better check
Browse files Browse the repository at this point in the history
  • Loading branch information
RicheyJang committed Apr 9, 2022
1 parent 4d8adde commit 29c5bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/bilibili/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 29c5bee

Please sign in to comment.