1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-27 02:09:24 +00:00

RuTracker: update regex

This commit is contained in:
kaso17 2018-04-27 16:36:57 +02:00
parent 0eebea0ef7
commit 08ad94a2f5

View file

@ -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);