From b5f0b28c61593bf8fadccb05bbc989562dec7494 Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Mon, 12 Aug 2024 22:44:36 +0800 Subject: [PATCH] fix --- server/core/integration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)