feat: check file already downloaded

This commit is contained in:
Simon Ding
2024-07-19 21:25:29 +08:00
parent c4e49d407b
commit c8bf74361b
4 changed files with 31 additions and 41 deletions

View File

@@ -130,6 +130,9 @@ func (s *Server) AddTv2Watchlist(c *gin.Context) (interface{}, error) {
if err := s.downloadBackdrop(detail.BackdropPath, r.ID); err != nil {
log.Errorf("download poster error: %v", err)
}
if err := s.checkDownloadedSeriesFiles(r); err != nil {
log.Errorf("check downloaded files error: %v", err)
}
}()