|
|
@ -39,8 +39,9 @@ namespace NzbDrone.Core.Parser
|
|
|
|
private static readonly Regex CaseSensitiveLanguageRegex = new Regex(@"(?:(?i)(?<!SUB[\W|_|^]))(?:(?<lithuanian>\bLT\b)|
|
|
|
|
private static readonly Regex CaseSensitiveLanguageRegex = new Regex(@"(?:(?i)(?<!SUB[\W|_|^]))(?:(?<lithuanian>\bLT\b)|
|
|
|
|
(?<czech>\bCZ\b)|
|
|
|
|
(?<czech>\bCZ\b)|
|
|
|
|
(?<polish>\bPL\b)|
|
|
|
|
(?<polish>\bPL\b)|
|
|
|
|
(?<bulgarian>\bBG\b))(?:(?i)(?![\W|_|^]SUB))|
|
|
|
|
(?<bulgarian>\bBG\b)|
|
|
|
|
(?<slovak>\bSK\b)",
|
|
|
|
(?<slovak>\bSK\b)|
|
|
|
|
|
|
|
|
(?<spanish>\b(?<!DTS[._ -])ES\b))(?:(?i)(?![\W|_|^]SUB))",
|
|
|
|
RegexOptions.Compiled | RegexOptions.IgnorePatternWhitespace);
|
|
|
|
RegexOptions.Compiled | RegexOptions.IgnorePatternWhitespace);
|
|
|
|
|
|
|
|
|
|
|
|
private static readonly Regex GermanDualLanguageRegex = new (@"(?<!WEB[-_. ]?)\bDL\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
|
|
|
private static readonly Regex GermanDualLanguageRegex = new (@"(?<!WEB[-_. ]?)\bDL\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
|
|
@ -261,6 +262,11 @@ namespace NzbDrone.Core.Parser
|
|
|
|
{
|
|
|
|
{
|
|
|
|
languages.Add(Language.Slovak);
|
|
|
|
languages.Add(Language.Slovak);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (match.Groups["spanish"].Captures.Any())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
languages.Add(Language.Spanish);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var matches = LanguageRegex.Matches(title);
|
|
|
|
var matches = LanguageRegex.Matches(title);
|
|
|
|