1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Fixed searching the wrong season.

This commit is contained in:
Taloth Saldono 2021-01-11 23:59:36 +01:00
parent ba2ca7ee29
commit dcda03da4a

View File

@ -233,6 +233,11 @@ private IEnumerable<SceneEpisodeMapping> 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