mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-26 02:34:58 +08:00
fix: season pack download
This commit is contained in:
@@ -28,7 +28,7 @@ func (s *Server) searchAndDownloadSeasonPackage(seriesId, seasonNum int) (*strin
|
|||||||
|
|
||||||
r1 := res[0]
|
r1 := res[0]
|
||||||
log.Infof("found resource to download: %+v", r1)
|
log.Infof("found resource to download: %+v", r1)
|
||||||
return s.core.DownloadEpisodeTorrent(r1, seriesId, seasonNum, -1)
|
return s.core.DownloadEpisodeTorrent(r1, seriesId, seasonNum)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ func (s *Server) DownloadTorrent(c *gin.Context) (interface{}, error) {
|
|||||||
name = fmt.Sprintf("%v S%02d", m.OriginalName, in.Season)
|
name = fmt.Sprintf("%v S%02d", m.OriginalName, in.Season)
|
||||||
}
|
}
|
||||||
res := torznab.Result{Name: name, Link: in.Link, Size: in.Size}
|
res := torznab.Result{Name: name, Link: in.Link, Size: in.Size}
|
||||||
return s.core.DownloadEpisodeTorrent(res, in.MediaID, in.Season, -1)
|
return s.core.DownloadEpisodeTorrent(res, in.MediaID, in.Season)
|
||||||
}
|
}
|
||||||
name := in.Name
|
name := in.Name
|
||||||
if name == "" {
|
if name == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user