Fixed: Avoid iso-mapping failure with Dutch/Flemish

This commit is contained in:
Qstick 2022-09-17 21:22:31 -05:00
parent 56bb87e55f
commit 29d8dc81ca
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ namespace NzbDrone.Core.Parser
if (isoCode.Length == 2)
{
//Lookup ISO639-1 code
return All.SingleOrDefault(l => l.TwoLetterCode == isoCode);
return All.FirstOrDefault(l => l.TwoLetterCode == isoCode);
}
else if (isoCode.Length == 3)
{
@ -58,7 +58,7 @@ namespace NzbDrone.Core.Parser
isoCode = mapped;
}
return All.SingleOrDefault(l => l.ThreeLetterCode == isoCode);
return All.FirstOrDefault(l => l.ThreeLetterCode == isoCode);
}
return null;