Fixed: Renaming episodes for a series

This commit is contained in:
Bogdan 2024-04-08 03:43:50 +03:00
parent dac69445e4
commit c4b6105541
1 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,11 @@ namespace NzbDrone.Core.MediaFiles
}
episodeFile.RelativePath = series.Path.GetRelativePath(destinationFilePath);
localEpisode.FileNameBeforeRename = episodeFile.RelativePath;
if (localEpisode is not null)
{
localEpisode.FileNameBeforeRename = episodeFile.RelativePath;
}
if (localEpisode is not null && _scriptImportDecider.TryImport(episodeFilePath, destinationFilePath, localEpisode, episodeFile, mode) is var scriptImportDecision && scriptImportDecision != ScriptImportDecision.DeferMove)
{