diff --git a/src/NzbDrone.Core.Test/ParserTests/LanguageParserFixture.cs b/src/NzbDrone.Core.Test/ParserTests/LanguageParserFixture.cs index 3d08c1aaa..647472992 100644 --- a/src/NzbDrone.Core.Test/ParserTests/LanguageParserFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/LanguageParserFixture.cs @@ -147,6 +147,7 @@ public void should_parse_language_russian(string postTitle) } [TestCase("Movie.Title.1994.Romanian.1080p.XviD-LOL")] + [TestCase("Movie.Title.1994.1080p.XviD.RoDubbed-LOL")] public void should_parse_language_romanian(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 c5051beb3..301e0e599 100644 --- a/src/NzbDrone.Core/Parser/LanguageParser.cs +++ b/src/NzbDrone.Core/Parser/LanguageParser.cs @@ -3,7 +3,6 @@ using System.IO; using System.Linq; using System.Text.RegularExpressions; -using Microsoft.Extensions.FileSystemGlobbing; using NLog; using NzbDrone.Common.Extensions; using NzbDrone.Common.Instrumentation; @@ -19,6 +18,7 @@ public static class LanguageParser (?german\b|videomann|ger[. ]dub)| (?flemish)| (?bgaudio)| + (?rodubbed)| (?dublado)| (?greek)| (?\b(?:FR|VO|VFF|VFQ|VFI|VF2|TRUEFRENCH|FRE|FRA)\b)| @@ -331,6 +331,11 @@ public static List ParseLanguages(string title) { languages.Add(Language.Latvian); } + + if (match.Groups["romanian"].Success) + { + languages.Add(Language.Romanian); + } } if (!languages.Any())