Fixed:(RuTracker) corrected regexp for director’s name in the title to cover cases for Russian directors (#2470)

Corrected regexp for rutracker director's name in the title to cover cases for russian directors
This commit is contained in:
Eugene Shatilo
2025-08-18 05:51:57 +03:00
committed by Qstick
parent 4350b6ce70
commit 4553ffe08b

View File

@@ -1749,7 +1749,7 @@ namespace NzbDrone.Core.Indexers.Definitions
// rutracker movies titles look like: russian name / english name (russian director / english director) other stuff
// Ирландец / The Irishman (Мартин Скорсезе / Martin Scorsese) [2019, США, криминал, драма, биография, WEB-DL 1080p] Dub (Пифагор) + MVO (Jaskier) + AVO (Юрий Сербин) + Sub Rus, Eng + Original Eng
// this part should be removed: (Мартин Скорсезе / Martin Scorsese)
title = Regex.Replace(title, @"(\([\p{IsCyrillic}\W]+)\s/\s(.+?)\)", string.Empty, RegexOptions.Compiled | RegexOptions.IgnoreCase);
title = Regex.Replace(title, @"(\([\p{IsCyrillic}\W]+)(?:\s/\s(.+?))?\)", string.Empty, RegexOptions.Compiled | RegexOptions.IgnoreCase);
// Remove VO, MVO and DVO from titles
var vo = new Regex(@"((?:\dx\s)?(?:[A-Z])?VO\s\(.+?\))");