diff --git a/src/NzbDrone.Core.Test/ParserTests/LanguageParserFixture.cs b/src/NzbDrone.Core.Test/ParserTests/LanguageParserFixture.cs index 5f48aebbc..d4996761e 100644 --- a/src/NzbDrone.Core.Test/ParserTests/LanguageParserFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/LanguageParserFixture.cs @@ -21,6 +21,7 @@ public void should_parse_language_english(string postTitle) [TestCase("The Danish Movie 2015")] [TestCase("Movie.Title.2018.2160p.WEBRip.x265.10bit.HDR.DD5.1-GASMASK")] [TestCase("Movie.Title.2010.720p.BluRay.x264.-[YTS.LT]")] + [TestCase("Movie.Title.2010.SUBFRENCH.1080p.WEB.x264-GROUP")] public void should_parse_language_unknown(string postTitle) { var result = Parser.Parser.ParseMovieTitle(postTitle, true); diff --git a/src/NzbDrone.Core/Parser/LanguageParser.cs b/src/NzbDrone.Core/Parser/LanguageParser.cs index 175d7ef36..e1574805e 100644 --- a/src/NzbDrone.Core/Parser/LanguageParser.cs +++ b/src/NzbDrone.Core/Parser/LanguageParser.cs @@ -21,7 +21,7 @@ public static class LanguageParser (?rodubbed)| (?dublado)| (?greek)| - (?\b(?:FR|VO|VF|VFF|VFQ|VFI|VF2|TRUEFRENCH|FRE|FRA)\b)| + (?\b(?:FR|VO|VF|VFF|VFQ|VFI|VF2|TRUEFRENCH|FRENCH|FRE|FRA)\b)| (?\b(?:rus|ru)\b)| (?\beng\b)| (?\b(?:HUNDUB|HUN)\b)| @@ -57,11 +57,6 @@ public static List ParseLanguages(string title) languages.Add(Language.English); } - if (lowerTitle.Contains("french")) - { - languages.Add(Language.French); - } - if (lowerTitle.Contains("spanish")) { languages.Add(Language.Spanish);