1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

New: Parse releases with JPN as Japanese and KOR as Korean

This commit is contained in:
Bogdan
2025-01-20 03:59:38 +02:00
committed by GitHub
parent f1f1921517
commit 3ceda1bcda
3 changed files with 18 additions and 2 deletions
+13 -1
View File
@@ -34,7 +34,9 @@ namespace NzbDrone.Core.Parser
(?<catalan>\b(?:catalan?|catalán|català)\b)|
(?<latvian>\b(?:lat|lav|lv)\b)|
(?<telugu>\btel\b)|
(?<vietnamese>\bVIE\b)",
(?<vietnamese>\bVIE\b)|
(?<japanese>\bJPN\b)|
(?<korean>\bKOR\b)",
RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.IgnorePatternWhitespace);
private static readonly Regex CaseSensitiveLanguageRegex = new Regex(@"(?:(?i)(?<!SUB[\W|_|^]))(?:(?<lithuanian>\bLT\b)|
@@ -393,6 +395,16 @@ namespace NzbDrone.Core.Parser
{
languages.Add(Language.Vietnamese);
}
if (match.Groups["japanese"].Success)
{
languages.Add(Language.Japanese);
}
if (match.Groups["korean"].Success)
{
languages.Add(Language.Korean);
}
}
if (!languages.Any())