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:
parent
9fcdebcf31
commit
d6ee538ec0
1 changed files with 5 additions and 0 deletions
|
@ -235,6 +235,11 @@ namespace Jackett.Common.Indexers.Definitions
|
||||||
}
|
}
|
||||||
yearStr ??= qDetailsLink.NextSibling.TextContent.Trim();
|
yearStr ??= qDetailsLink.NextSibling.TextContent.Trim();
|
||||||
category = Regex.Replace(yearStr, @".+ \[(.+)\]", "$1");
|
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"),
|
if (Uri.TryCreate(row.QuerySelector("img[alt=\"Cover\"]")?.GetAttribute("src"),
|
||||||
UriKind.Absolute, out var posterUri))
|
UriKind.Absolute, out var posterUri))
|
||||||
|
|
Loading…
Reference in a new issue