fixed old file path

This commit is contained in:
milarin 2023-01-15 22:19:49 +01:00
parent 965b5957e1
commit dc524dbd42

View File

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