mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
This commit is contained in:

committed by
garfield69

parent
60ef4d2546
commit
1737c21eea
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.Text;
|
||||
@@ -1593,6 +1593,18 @@ namespace Jackett.Common.Indexers
|
||||
}
|
||||
else if (configData.StripRussianLetters.Value)
|
||||
{
|
||||
if (release.Category.Contains(TorznabCatType.Movies.ID) ||
|
||||
release.Category.Contains(TorznabCatType.MoviesHD.ID) ||
|
||||
release.Category.Contains(TorznabCatType.Movies3D.ID) ||
|
||||
release.Category.Contains(TorznabCatType.MoviesForeign.ID))
|
||||
{
|
||||
// remove director's name from 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)
|
||||
var director = new Regex(@"(\([А-Яа-яЁё\W]+)\s/\s(.+?)\)");
|
||||
release.Title = director.Replace(release.Title, "");
|
||||
}
|
||||
var regex = new Regex(@"(\([А-Яа-яЁё\W]+\))|(^[А-Яа-яЁё\W\d]+\/ )|([а-яА-ЯЁё \-]+,+)|([а-яА-ЯЁё]+)");
|
||||
release.Title = regex.Replace(release.Title, "");
|
||||
}
|
||||
|
Reference in New Issue
Block a user