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 GitHub
parent 7ada036480
commit cb4cc81ad0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1749,7 +1749,7 @@ public string Parse(string title,
// 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\(.+?\))");