diff --git a/src/NzbDrone.Core.Test/Languages/LanguageFixture.cs b/src/NzbDrone.Core.Test/Languages/LanguageFixture.cs index 7b756e3ad..da77d5f42 100644 --- a/src/NzbDrone.Core.Test/Languages/LanguageFixture.cs +++ b/src/NzbDrone.Core.Test/Languages/LanguageFixture.cs @@ -57,7 +57,9 @@ namespace NzbDrone.Core.Test.Languages new object[] { 42, Language.Estonian }, new object[] { 43, Language.Tamil }, new object[] { 44, Language.Indonesian }, - new object[] { 45, Language.Telugu } + new object[] { 45, Language.Telugu }, + new object[] { 46, Language.Macedonian }, + new object[] { 47, Language.Slovenian } }; public static object[] ToIntCases = @@ -109,7 +111,9 @@ namespace NzbDrone.Core.Test.Languages new object[] { Language.Estonian, 42 }, new object[] { Language.Tamil, 43 }, new object[] { Language.Indonesian, 44 }, - new object[] { Language.Telugu, 45 } + new object[] { Language.Telugu, 45 }, + new object[] { Language.Macedonian, 46 }, + new object[] { Language.Slovenian, 47 } }; [Test] diff --git a/src/NzbDrone.Core/ImportLists/TMDb/TMDbLanguageCodes.cs b/src/NzbDrone.Core/ImportLists/TMDb/TMDbLanguageCodes.cs index 5c1b48eda..ee3eca6c1 100644 --- a/src/NzbDrone.Core/ImportLists/TMDb/TMDbLanguageCodes.cs +++ b/src/NzbDrone.Core/ImportLists/TMDb/TMDbLanguageCodes.cs @@ -53,6 +53,10 @@ namespace NzbDrone.Core.ImportLists.TMDb [FieldOption(Hint = "Bengali")] bn, [FieldOption(Hint = "Romanian")] - ro + ro, + [FieldOption(Hint = "Macedonian")] + mk, + [FieldOption(Hint = "Slovenian")] + sl } } diff --git a/src/NzbDrone.Core/Languages/Language.cs b/src/NzbDrone.Core/Languages/Language.cs index ce127d391..0684a7391 100644 --- a/src/NzbDrone.Core/Languages/Language.cs +++ b/src/NzbDrone.Core/Languages/Language.cs @@ -116,6 +116,8 @@ namespace NzbDrone.Core.Languages public static Language Tamil => new Language(43, "Tamil"); public static Language Indonesian => new Language(44, "Indonesian"); public static Language Telugu => new Language(45, "Telugu"); + public static Language Macedonian => new Language(46, "Macedonian"); + public static Language Slovenian => new Language(47, "Slovenian"); public static Language Any => new Language(-1, "Any"); public static Language Original => new Language(-2, "Original"); @@ -171,6 +173,8 @@ namespace NzbDrone.Core.Languages Tamil, Indonesian, Telugu, + Macedonian, + Slovenian, Any, Original }; diff --git a/src/NzbDrone.Core/Parser/IsoLanguages.cs b/src/NzbDrone.Core/Parser/IsoLanguages.cs index 8063f214d..a3b40d48b 100644 --- a/src/NzbDrone.Core/Parser/IsoLanguages.cs +++ b/src/NzbDrone.Core/Parser/IsoLanguages.cs @@ -54,7 +54,9 @@ namespace NzbDrone.Core.Parser new IsoLanguage("et", "", "est", "Estonian", Language.Estonian), new IsoLanguage("ta", "", "tam", "Tamil", Language.Tamil), new IsoLanguage("id", "", "ind", "Indonesian", Language.Indonesian), - new IsoLanguage("te", "", "tel", "Telugu", Language.Telugu) + new IsoLanguage("te", "", "tel", "Telugu", Language.Telugu), + new IsoLanguage("mk", "", "mkd", "Macedonian", Language.Macedonian), + new IsoLanguage("sl", "", "slv", "Slovenian", Language.Slovenian), }; private static readonly Dictionary AlternateIsoCodeMappings = new ()