Fixed: Avoid iso-mapping failure with Dutch/Flemish
This commit is contained in:
parent
56bb87e55f
commit
29d8dc81ca
|
@ -48,7 +48,7 @@ namespace NzbDrone.Core.Parser
|
||||||
if (isoCode.Length == 2)
|
if (isoCode.Length == 2)
|
||||||
{
|
{
|
||||||
//Lookup ISO639-1 code
|
//Lookup ISO639-1 code
|
||||||
return All.SingleOrDefault(l => l.TwoLetterCode == isoCode);
|
return All.FirstOrDefault(l => l.TwoLetterCode == isoCode);
|
||||||
}
|
}
|
||||||
else if (isoCode.Length == 3)
|
else if (isoCode.Length == 3)
|
||||||
{
|
{
|
||||||
|
@ -58,7 +58,7 @@ namespace NzbDrone.Core.Parser
|
||||||
isoCode = mapped;
|
isoCode = mapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
return All.SingleOrDefault(l => l.ThreeLetterCode == isoCode);
|
return All.FirstOrDefault(l => l.ThreeLetterCode == isoCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue