mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-25 22:46:31 -04:00
New: Support in services for multiple scene naming/numbering exceptions
This commit is contained in:
@@ -29,11 +29,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
|
||||
var singleEpisodeSpec = searchCriteria as SeasonSearchCriteria;
|
||||
if (singleEpisodeSpec == null) return Decision.Accept();
|
||||
|
||||
var seasonNumber = _sceneMappingService.GetTvdbSeasonNumber(remoteEpisode.ParsedEpisodeInfo.SeriesTitle,
|
||||
remoteEpisode.ParsedEpisodeInfo.ReleaseTitle,
|
||||
remoteEpisode.ParsedEpisodeInfo.SeasonNumber);
|
||||
|
||||
if (singleEpisodeSpec.SeasonNumber != seasonNumber)
|
||||
if (singleEpisodeSpec.SeasonNumber != remoteEpisode.MappedSeasonNumber)
|
||||
{
|
||||
_logger.Debug("Season number does not match searched season number, skipping.");
|
||||
return Decision.Reject("Wrong season");
|
||||
|
||||
Reference in New Issue
Block a user