From 775b716c0f3cc2ccdff92db26cffa6db499b84cb Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Mon, 20 Oct 2025 14:59:04 -0500 Subject: [PATCH] Fixed:(RuTracker) fix for Anime S01nd Episode N of N or N+N of N+N Based on Jackett 5b712189fc55470dc94b56ea0d764e123e2dc432 --- src/NzbDrone.Core/Indexers/Definitions/RuTracker.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/RuTracker.cs b/src/NzbDrone.Core/Indexers/Definitions/RuTracker.cs index d7500663d..dc1ebfa14 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/RuTracker.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/RuTracker.cs @@ -1541,7 +1541,7 @@ private IEnumerable GetPagedRequests(string term, string[] track if (season != 0) { - searchString += " Сезон: " + season; + searchString += " ТВ | Сезон: " + season; } parameters.Set("nm", searchString); @@ -1712,6 +1712,8 @@ public class RuTrackerTitleParser private readonly Regex _tvTitleRusSeasonRegex = new(@"Сезон\s*[:]*\s+(\d+(?:-\d+)?)", RegexOptions.Compiled | RegexOptions.IgnoreCase); private readonly Regex _tvTitleRusEpisodeOfRegex = new(@"(?:Серии|Эпизод|Выпуски)+\s*[:]*\s+(\d+(?:-\d+)?)\s*из\s*([\w?])", RegexOptions.Compiled | RegexOptions.IgnoreCase); private readonly Regex _tvTitleRusEpisodeRegex = new(@"(?:Серии|Эпизод|Выпуски)+\s*[:]*\s+(\d+(?:-\d+)?)", RegexOptions.Compiled | RegexOptions.IgnoreCase); + private readonly Regex _tvTitleRusSeasonAnimeRegex = new(@"ТВ[-]*(?:(\d+))", RegexOptions.Compiled | RegexOptions.IgnoreCase); + private readonly Regex _tvTitleRusEpisodeAnimeOfRegex = new(@"\[(\d+(\+\d+)?)\s+из\s+(\d+(\+\d+)?)\]", RegexOptions.Compiled | RegexOptions.IgnoreCase); public string Parse(string title, ICollection categories, @@ -1736,6 +1738,8 @@ public string Parse(string title, title = _tvTitleRusSeasonRegex.Replace(title, "S$1"); title = _tvTitleRusEpisodeOfRegex.Replace(title, "E$1 of $2"); title = _tvTitleRusEpisodeRegex.Replace(title, "E$1"); + title = _tvTitleRusSeasonAnimeRegex.Replace(title, "S$1"); + title = _tvTitleRusEpisodeAnimeOfRegex.Replace(title, "E$1 of $3"); } else if (IsAnyMovieCategory(categories)) {