1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-20 21:55:03 -04:00

Fixed: Multiple Scene Mapping exception even when the mappings pointed to the same tvdbid.

Closes #1917
This commit is contained in:
Taloth Saldono
2017-05-11 06:32:09 +02:00
parent 95c81f8905
commit c184e7ddcc
2 changed files with 18 additions and 2 deletions
@@ -102,9 +102,11 @@ namespace NzbDrone.Core.DataAugmentation.Scene
return null;
}
if (mappings.Count <= 1)
var distinctMappings = mappings.DistinctBy(v => v.TvdbId).ToList();
if (distinctMappings.Count <= 1)
{
return mappings.FirstOrDefault();
return distinctMappings.FirstOrDefault();
}
throw new InvalidSceneMappingException(mappings);