fix: download series all

This commit is contained in:
Simon Ding
2024-08-12 18:13:34 +08:00
parent 0cce4ffee0
commit 57ec0b9eb9
3 changed files with 16 additions and 11 deletions

View File

@@ -180,7 +180,7 @@ func (s *Server) DownloadAll(c *gin.Context) (interface{}, error) {
return nil, errors.Wrap(err, "get media")
}
if m.MediaType == media.MediaTypeTv {
return s.core.DownloadSeriesAllEpisodes(m.ID)
return s.core.DownloadSeriesAllEpisodes(m.ID), nil
}
name, err := s.core.DownloadMovieByID(m.ID)