1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-22 07:43:13 +00:00

brasiltracker: fix some 3x category detection

This commit is contained in:
Garfield69 2024-12-20 06:36:10 +13:00
parent 9fcdebcf31
commit d6ee538ec0

View file

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