fix: get correct movie episode id

This commit is contained in:
Simon Ding
2025-04-20 10:41:58 +08:00
parent ec3f9b2f96
commit 8e9ba101c8
2 changed files with 19 additions and 17 deletions

View File

@@ -165,7 +165,7 @@ func (c *Engine) downloadTorrent(m *ent.Media, r1 torznab.Result, seasonNum int,
c.db.SetSeasonAllEpisodeStatus(m.ID, seasonNum, episode.StatusDownloading)
}
} else {
} else {//movie download
ep, _ := c.db.GetMovieDummyEpisode(m.ID)
if ep.Status == episode.StatusMissing {
c.db.SetEpisodeStatus(ep.ID, episode.StatusDownloading)