fix: get episode

This commit is contained in:
Simon Ding
2025-04-23 11:07:24 +08:00
parent 98823e251b
commit 2641a5fccd
2 changed files with 9 additions and 8 deletions

View File

@@ -260,8 +260,9 @@ func (c *Engine) findEpisodeFilesPreMoving(historyId int) error {
return err
}
for _, id := range episodeIds {
ep, err := c.db.GetEpisode(his.MediaID, his.SeasonNum, id)
ep, err := c.db.GetEpisodeByID(id)
if err != nil {
log.Warnf("query episode error (%d): %v", id, err)
continue
}
task.WalkFunc()(func(path string, info fs.FileInfo) error {