From dcda03da4aa49f8ff6d08ee4bd0db20ee96ebb84 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Mon, 11 Jan 2021 23:59:36 +0100 Subject: [PATCH] Fixed searching the wrong season. --- src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs b/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs index 289f8530e..64d4ad1a2 100644 --- a/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs +++ b/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs @@ -233,6 +233,11 @@ private IEnumerable GetSceneEpisodeMappings(Series series, foreach (var sceneMapping in sceneMappings) { + if ((sceneMapping.SeasonNumber ?? -1) != -1 && sceneMapping.SeasonNumber != episode.SeasonNumber) + { + continue; + } + if (sceneMapping.ParseTerm == series.CleanTitle && sceneMapping.FilterRegex.IsNotNullOrWhiteSpace()) { // Disable the implied mapping if we have an explicit mapping by the same name