fix: handle err

This commit is contained in:
Simon Ding
2025-04-20 10:08:00 +08:00
parent d44060ff33
commit 8f354fff41

View File

@@ -260,7 +260,10 @@ func (c *Engine) findEpisodeFilesPreMoving(historyId int) error {
return err
}
for _, id := range episodeIds {
ep, _ := c.db.GetEpisode(his.MediaID, his.SeasonNum, id)
ep, err := c.db.GetEpisode(his.MediaID, his.SeasonNum, id)
if err != nil {
continue
}
task.WalkFunc()(func(path string, info fs.FileInfo) error {
if info.IsDir() {
return nil