Skip to content

Commit

Permalink
feat: send msg when added to import list
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Oct 16, 2024
1 parent ed692b5 commit 709d9ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/core/importlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
}

Expand Down

0 comments on commit 709d9ea

Please sign in to comment.