|
|
|
@ -205,7 +205,7 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
private static readonly Regex AnimeReleaseGroupRegex = new Regex(@"^(?:\[(?<subgroup>(?!\s).+?(?<!\s))\](?:_|-|\s|\.)?)",
|
|
|
|
|
RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
|
|
|
|
|
|
|
|
|
private static readonly Regex LanguageRegex = new Regex(@"(?:\W|_)(?<italian>\b(?:ita|italian)\b)|(?<german>german\b|videomann)|(?<flemish>flemish)|(?<greek>greek)|(?<french>(?:\W|_)(?:FR|VOSTFR)(?:\W|_))|(?<russian>\brus\b)|(?<dutch>nl\W?subs?)",
|
|
|
|
|
private static readonly Regex LanguageRegex = new Regex(@"(?:\W|_)(?<italian>\b(?:ita|italian)\b)|(?<german>german\b|videomann)|(?<flemish>flemish)|(?<greek>greek)|(?<french>(?:\W|_)(?:FR|VOSTFR)(?:\W|_))|(?<russian>\brus\b)|(?<dutch>nl\W?subs?)|(?<hungarian>\b(?:HUNDUB|HUN)\b)",
|
|
|
|
|
RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
|
|
|
|
|
|
|
|
|
private static readonly Regex YearInTitleRegex = new Regex(@"^(?<title>.+?)(?:\W|_)?(?<year>\d{4})",
|
|
|
|
@ -498,6 +498,9 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
if (lowerTitle.Contains("portuguese"))
|
|
|
|
|
return Language.Portuguese;
|
|
|
|
|
|
|
|
|
|
if (lowerTitle.Contains("hungarian"))
|
|
|
|
|
return Language.Hungarian;
|
|
|
|
|
|
|
|
|
|
var match = LanguageRegex.Match(title);
|
|
|
|
|
|
|
|
|
|
if (match.Groups["italian"].Captures.Cast<Capture>().Any())
|
|
|
|
@ -521,6 +524,9 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
if (match.Groups["dutch"].Success)
|
|
|
|
|
return Language.Dutch;
|
|
|
|
|
|
|
|
|
|
if (match.Groups["hungarian"].Success)
|
|
|
|
|
return Language.Hungarian;
|
|
|
|
|
|
|
|
|
|
return Language.English;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|