From 709d9ea4eb6275815531edca31f68ddd695fd22e Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Wed, 16 Oct 2024 15:21:47 +0800 Subject: [PATCH] feat: send msg when added to import list --- server/core/importlist.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/core/importlist.go b/server/core/importlist.go index edaab87..fbaaf05 100644 --- a/server/core/importlist.go +++ b/server/core/importlist.go @@ -76,6 +76,7 @@ func (c *Client) periodicallyUpdateImportlist() error { if err != nil { log.Errorf("[update_import_lists] add movie to watchlist error: %v", err) } else { + c.sendMsg(fmt.Sprintf("成功监控电影:%v", d.Title)) log.Infof("[update_import_lists] add movie to watchlist success") } } else if len(tmdbRes.TvResults) > 0 { @@ -95,6 +96,7 @@ func (c *Client) periodicallyUpdateImportlist() error { if err != nil { log.Errorf("[update_import_lists] add tv to watchlist error: %v", err) } else { + c.sendMsg(fmt.Sprintf("成功监控电视剧:%v", d.Name)) log.Infof("[update_import_lists] add tv to watchlist success") }