mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
divxtotal: fix category search (#13197)
This commit is contained in:
@@ -227,19 +227,14 @@ namespace Jackett.Common.Indexers
|
|||||||
|
|
||||||
// match the words in the query with the titles
|
// match the words in the query with the titles
|
||||||
if (matchWords && !CheckTitleMatchWords(query.SearchTerm, title))
|
if (matchWords && !CheckTitleMatchWords(query.SearchTerm, title))
|
||||||
{
|
|
||||||
return releases;
|
return releases;
|
||||||
}
|
|
||||||
|
|
||||||
var detailsStr = anchor.GetAttribute("href");
|
var detailsStr = anchor.GetAttribute("href");
|
||||||
var cat = detailsStr.Split('/')[3];
|
var cat = detailsStr.Split('/')[3];
|
||||||
var categories = MapTrackerCatToNewznab(cat);
|
|
||||||
|
|
||||||
// return results only for requested categories
|
// return results only for requested categories
|
||||||
if (query.Categories.Any() && !query.Categories.Contains(categories.First()))
|
if (query.Categories.Any() && !MapTorznabCapsToTrackers(query).Contains(cat))
|
||||||
{
|
|
||||||
return releases;
|
return releases;
|
||||||
}
|
|
||||||
|
|
||||||
var publishStr = row.QuerySelectorAll("td")[2].TextContent.Trim();
|
var publishStr = row.QuerySelectorAll("td")[2].TextContent.Trim();
|
||||||
var publishDate = TryToParseDate(publishStr, DateTime.Now);
|
var publishDate = TryToParseDate(publishStr, DateTime.Now);
|
||||||
|
Reference in New Issue
Block a user