Fixed unit tests

This commit is contained in:
Mark McDowall 2020-11-15 23:49:02 -08:00
parent 487c664e43
commit bd0e5e16b8
1 changed files with 4 additions and 2 deletions

View File

@ -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;