From dc524dbd42317422c1ff9df5746f1e07918b6ed5 Mon Sep 17 00:00:00 2001 From: milarin Date: Sun, 15 Jan 2023 22:19:49 +0100 Subject: [PATCH] fixed old file path --- handle_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle_file.go b/handle_file.go index 62af091..ddeceb3 100644 --- a/handle_file.go +++ b/handle_file.go @@ -89,7 +89,7 @@ func HandleParsedFile(w io.Writer, parsedFile *model.ParsedFile) { func OrganizeAnimeEpisode(w io.Writer, parsedFile *model.ParsedFile) error { start := time.Now() - oldFile := filepath.Join(DownloadPath, parsedFile.File) + oldFile := parsedFile.File newFile := logic.GetAnimeEpFilepath(parsedFile.AnimeEpisode(), filepath.Ext(parsedFile.File)) lockFile := logic.GetAnimeEpFilepath(parsedFile.AnimeEpisode(), "lock")