diff --git a/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs b/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs index 697420132..2848027f2 100644 --- a/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs +++ b/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs @@ -155,13 +155,14 @@ namespace NzbDrone.Core.CustomFormats private static List ParseCustomFormat(EpisodeFile episodeFile, Series series, List allCustomFormats) { var sceneName = string.Empty; + if (episodeFile.SceneName.IsNotNullOrWhiteSpace()) { sceneName = episodeFile.SceneName; } else if (episodeFile.OriginalFilePath.IsNotNullOrWhiteSpace()) { - sceneName = episodeFile.OriginalFilePath; + sceneName = Path.GetFileName(episodeFile.OriginalFilePath); } else if (episodeFile.RelativePath.IsNotNullOrWhiteSpace()) {