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")