feat: change name suggestting

This commit is contained in:
Simon Ding
2024-07-31 16:23:22 +08:00
parent e94386e455
commit b337e40fcc
3 changed files with 25 additions and 19 deletions

View File

@@ -124,6 +124,7 @@ func (s *Server) AddTv2Watchlist(c *gin.Context) (interface{}, error) {
StorageID: in.StorageID,
TargetDir: in.Folder,
DownloadHistoryEpisodes: in.DownloadHistoryEpisodes,
ImdbID: detail.IMDbID,
}, epIds)
if err != nil {
return nil, errors.Wrap(err, "add to list")
@@ -189,6 +190,7 @@ func (s *Server) AddMovie2Watchlist(c *gin.Context) (interface{}, error) {
Resolution: media.Resolution(in.Resolution),
StorageID: in.StorageID,
TargetDir: in.Folder,
ImdbID: detail.IMDbID,
}, []int{epid})
if err != nil {
return nil, errors.Wrap(err, "add to list")