mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
RuTracker: update regex
This commit is contained in:
@@ -1577,7 +1577,8 @@ namespace Jackett.Common.Indexers
|
|||||||
if (release.Category.Contains(TorznabCatType.TV.ID))
|
if (release.Category.Contains(TorznabCatType.TV.ID))
|
||||||
{
|
{
|
||||||
// extract season and episodes
|
// extract season and episodes
|
||||||
var regex = new Regex(".+\\/\\s([^а-яА-я\\/]+)\\s\\/.+Сезон\\s*[:]*\\s+(\\d+).+(?:Серии|Эпизод)+\\s*[:]*\\s+(\\d+-*\\d*).+,\\s+(.+)\\].+(\\(.+\\)).*");
|
//var regex = new Regex(".+\\/\\s([^а-яА-я\\/]+)\\s\\/.+Сезон\\s*[:]*\\s+(\\d+).+(?:Серии|Эпизод)+\\s*[:]*\\s+(\\d+-*\\d*).+,\\s+(.+)\\].+(\\(.+\\)).*");
|
||||||
|
var regex = new Regex(".+\\/\\s([^а-яА-я\\/]+)\\s\\/.+Сезон\\s*[:]*\\s+(\\d+).+(?:Серии|Эпизод)+\\s*[:]*\\s+(\\d+-*\\d*).+,\\s+(.+)\\]\\s(.+)");
|
||||||
|
|
||||||
var title = regex.Replace(release.Title, "$1 - S$2E$3 - rus $4 $5");
|
var title = regex.Replace(release.Title, "$1 - S$2E$3 - rus $4 $5");
|
||||||
title = Regex.Replace(title, "-Rip", "Rip", RegexOptions.IgnoreCase);
|
title = Regex.Replace(title, "-Rip", "Rip", RegexOptions.IgnoreCase);
|
||||||
|
Reference in New Issue
Block a user