From bd0e5e16b87d73738be3d58755d6ae2c5aa4dffd Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 15 Nov 2020 23:49:02 -0800 Subject: [PATCH] Fixed unit tests --- .../MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs index 63bc40848..90e6c03b4 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs @@ -218,9 +218,11 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport return fileName; } - if (SceneChecker.IsSceneTitle(localEpisode.FolderEpisodeInfo.ReleaseTitle)) + var folderTitle = localEpisode.FolderEpisodeInfo?.ReleaseTitle; + + if (folderTitle.IsNotNullOrWhiteSpace() && SceneChecker.IsSceneTitle(folderTitle)) { - return localEpisode.FolderEpisodeInfo.ReleaseTitle; + return folderTitle; } return null;