From d6ee538ec00e1c7390c8b957a8b14cf10e294251 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 20 Dec 2024 06:36:10 +1300 Subject: [PATCH] brasiltracker: fix some 3x category detection --- src/Jackett.Common/Indexers/Definitions/BrasilTracker.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Jackett.Common/Indexers/Definitions/BrasilTracker.cs b/src/Jackett.Common/Indexers/Definitions/BrasilTracker.cs index daba9a394..01c1bd705 100644 --- a/src/Jackett.Common/Indexers/Definitions/BrasilTracker.cs +++ b/src/Jackett.Common/Indexers/Definitions/BrasilTracker.cs @@ -235,6 +235,11 @@ namespace Jackett.Common.Indexers.Definitions } yearStr ??= qDetailsLink.NextSibling.TextContent.Trim(); category = Regex.Replace(yearStr, @".+ \[(.+)\]", "$1"); + if (category == "XXX") + { + // some 3x titles end with [XXX] which needs to be renamed. + category = category.Replace("XXX", "Filmes XXX"); + } if (Uri.TryCreate(row.QuerySelector("img[alt=\"Cover\"]")?.GetAttribute("src"), UriKind.Absolute, out var posterUri))