Fixed: Scene Name not being stored properly during import if not linked to a download client item and filename is obfuscated

This commit is contained in:
Mark McDowall 2020-11-15 18:16:31 -08:00
parent fed2a429c7
commit 487c664e43
2 changed files with 6 additions and 0 deletions

View File

@ -218,6 +218,11 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
return fileName;
}
if (SceneChecker.IsSceneTitle(localEpisode.FolderEpisodeInfo.ReleaseTitle))
{
return localEpisode.FolderEpisodeInfo.ReleaseTitle;
}
return null;
}
}

View File

@ -397,6 +397,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual
if (file.FolderName.IsNotNullOrWhiteSpace())
{
localEpisode.FolderEpisodeInfo = Parser.Parser.ParseTitle(file.FolderName);
localEpisode.SceneSource = !existingFile;
}
localEpisode = _aggregationService.Augment(localEpisode, trackedDownload?.DownloadItem, false);