mirror of
https://github.com/Jackett/Jackett
synced 2024-12-27 18:29:47 +00:00
RuTracker: update regex
This commit is contained in:
parent
0eebea0ef7
commit
08ad94a2f5
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue