refactor: change method to restore tasks for better maintains

This commit is contained in:
Simon Ding
2024-10-10 09:57:17 +08:00
parent e0d0ab80b6
commit 1728690860
9 changed files with 107 additions and 104 deletions

View File

@@ -59,7 +59,7 @@ func (c *Client) DownloadEpisodeTorrent(r1 torznab.Result, seriesId, seasonNum,
TargetDir: dir,
Status: history.StatusRunning,
Size: r1.Size,
Saved: torrent.Save(),
//Saved: torrent.Save(),
Link: r1.Link,
DownloadClientID: dlc.ID,
IndexerID: r1.IndexerId,
@@ -126,7 +126,7 @@ func (c *Client) DownloadMovie(m *ent.Media, link, name string, size int, indexe
TargetDir: m.TargetDir,
Status: history.StatusRunning,
Size: size,
Saved: torrent.Save(),
//Saved: torrent.Save(),
Link: link,
DownloadClientID: dlc.ID,
IndexerID: indexerID,