mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-09 05:40:53 +02:00
Fixed: Avoid iso-mapping failure with Dutch/Flemish
This commit is contained in:
parent
56bb87e55f
commit
29d8dc81ca
1 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ public static IsoLanguage Find(string isoCode)
|
|||
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 @@ public static IsoLanguage Find(string isoCode)
|
|||
isoCode = mapped;
|
||||
}
|
||||
|
||||
return All.SingleOrDefault(l => l.ThreeLetterCode == isoCode);
|
||||
return All.FirstOrDefault(l => l.ThreeLetterCode == isoCode);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue