mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-24 22:37:06 -04:00
Fixed searching the wrong season.
This commit is contained in:
parent
ba2ca7ee29
commit
dcda03da4a
1 changed files with 5 additions and 0 deletions
|
@ -233,6 +233,11 @@ namespace NzbDrone.Core.IndexerSearch
|
||||||
|
|
||||||
foreach (var sceneMapping in sceneMappings)
|
foreach (var sceneMapping in sceneMappings)
|
||||||
{
|
{
|
||||||
|
if ((sceneMapping.SeasonNumber ?? -1) != -1 && sceneMapping.SeasonNumber != episode.SeasonNumber)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (sceneMapping.ParseTerm == series.CleanTitle && sceneMapping.FilterRegex.IsNotNullOrWhiteSpace())
|
if (sceneMapping.ParseTerm == series.CleanTitle && sceneMapping.FilterRegex.IsNotNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
// Disable the implied mapping if we have an explicit mapping by the same name
|
// Disable the implied mapping if we have an explicit mapping by the same name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue