From 30664ea8062e9bcfada0eb5fbb354a07525c8b36 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 8 Apr 2020 21:18:19 -0400 Subject: [PATCH] New: Added Norwegian Bokmal alias Co-Authored-By: taloth --- src/NzbDrone.Core/Parser/IsoLanguages.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Parser/IsoLanguages.cs b/src/NzbDrone.Core/Parser/IsoLanguages.cs index d6789ec6b..342a06cab 100644 --- a/src/NzbDrone.Core/Parser/IsoLanguages.cs +++ b/src/NzbDrone.Core/Parser/IsoLanguages.cs @@ -24,6 +24,7 @@ public static class IsoLanguages new IsoLanguage("vi", "vie", Language.Vietnamese), new IsoLanguage("sv", "swe", Language.Swedish), new IsoLanguage("no", "nor", Language.Norwegian), + new IsoLanguage("nb", "nob", Language.Norwegian), new IsoLanguage("fi", "fin", Language.Finnish), new IsoLanguage("tr", "tur", Language.Turkish), new IsoLanguage("pt", "por", Language.Portuguese), @@ -55,7 +56,7 @@ public static IsoLanguage Find(string isoCode) public static IsoLanguage Get(Language language) { - return All.SingleOrDefault(l => l.Language == language); + return All.FirstOrDefault(l => l.Language == language); } } }