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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user