diff --git a/server/core/integration.go b/server/core/integration.go index 528878a..7cc978b 100644 --- a/server/core/integration.go +++ b/server/core/integration.go @@ -177,7 +177,7 @@ func (c *Client) findEpisodeFilesPreMoving(historyId int) error { } } } else { - if fi.IsDir() { + if !fi.IsDir() { return fmt.Errorf("not season pack downloaded") } seasonNum, err := utils.SeasonId(his.TargetDir)