1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-03 05:35:29 +00:00

Fixed unit tests

This commit is contained in:
Mark McDowall 2020-11-15 23:49:02 -08:00
parent 487c664e43
commit bd0e5e16b8

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;