1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

nlsub is treated as dutch

This commit is contained in:
Mark McDowall 2014-03-05 17:29:05 -08:00
parent 96a4cd33cb
commit 36e7dc75e5

View File

@ -426,6 +426,9 @@ private static Language ParseLanguage(string title)
if (lowerTitle.Contains("dutch"))
return Language.Dutch;
if (lowerTitle.Contains("nlsub"))
return Language.Dutch;
if (lowerTitle.Contains("japanese"))
return Language.Japanese;
@ -462,9 +465,6 @@ private static Language ParseLanguage(string title)
if (lowerTitle.Contains("portuguese"))
return Language.Portuguese;
if (lowerTitle.Contains("nlsub"))
return Language.Norwegian;
var match = LanguageRegex.Match(title);
if (match.Groups["italian"].Captures.Cast<Capture>().Any())