fix: name cannot parsed

This commit is contained in:
Simon Ding
2024-07-24 18:35:01 +08:00
parent f4b8d03cfc
commit 16ca00d19c
6 changed files with 22 additions and 19 deletions

View File

@@ -294,7 +294,7 @@ func (s *Server) downloadMovieSingleEpisode(ep *ent.Episode) error {
}
r1 := res[0]
log.Infof("begin download torrent resource: %v", r1.Name)
torrent, err := trc.Download(r1.Magnet, s.db.GetDownloadDir())
torrent, err := trc.Download(r1.Link, s.db.GetDownloadDir())
if err != nil {
return errors.Wrap(err, "downloading")
}