|
|
|
@ -30,11 +30,15 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation.Aggregators
|
|
|
|
|
|
|
|
|
|
if (!otherFiles && !SceneChecker.IsSceneTitle(Path.GetFileNameWithoutExtension(localEpisode.Path)))
|
|
|
|
|
{
|
|
|
|
|
if (downloadClientEpisodeInfo != null && !downloadClientEpisodeInfo.FullSeason)
|
|
|
|
|
if (downloadClientEpisodeInfo != null &&
|
|
|
|
|
!downloadClientEpisodeInfo.FullSeason &&
|
|
|
|
|
PreferOtherEpisodeInfo(parsedEpisodeInfo, downloadClientEpisodeInfo))
|
|
|
|
|
{
|
|
|
|
|
parsedEpisodeInfo = localEpisode.DownloadClientEpisodeInfo;
|
|
|
|
|
}
|
|
|
|
|
else if (folderEpisodeInfo != null && !folderEpisodeInfo.FullSeason)
|
|
|
|
|
else if (folderEpisodeInfo != null &&
|
|
|
|
|
!folderEpisodeInfo.FullSeason &&
|
|
|
|
|
PreferOtherEpisodeInfo(parsedEpisodeInfo, folderEpisodeInfo))
|
|
|
|
|
{
|
|
|
|
|
parsedEpisodeInfo = localEpisode.FolderEpisodeInfo;
|
|
|
|
|
}
|
|
|
|
@ -68,5 +72,21 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation.Aggregators
|
|
|
|
|
|
|
|
|
|
return new List<Episode>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private bool PreferOtherEpisodeInfo(ParsedEpisodeInfo fileEpisodeInfo, ParsedEpisodeInfo otherEpisodeInfo)
|
|
|
|
|
{
|
|
|
|
|
if (fileEpisodeInfo == null)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// When the files episode info is not absolute prefer it over a parsed episode info that is absolute
|
|
|
|
|
if (!fileEpisodeInfo.IsAbsoluteNumbering && otherEpisodeInfo.IsAbsoluteNumbering)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|