From ca65a2eebbfa49b536aebe66335cad832dd7167a Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Sun, 24 Apr 2022 21:42:14 +0200 Subject: [PATCH] divxtotal: fix category search (#13197) --- src/Jackett.Common/Indexers/DivxTotal.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Jackett.Common/Indexers/DivxTotal.cs b/src/Jackett.Common/Indexers/DivxTotal.cs index ff1b8411e..3d8d6c666 100644 --- a/src/Jackett.Common/Indexers/DivxTotal.cs +++ b/src/Jackett.Common/Indexers/DivxTotal.cs @@ -227,19 +227,14 @@ namespace Jackett.Common.Indexers // match the words in the query with the titles if (matchWords && !CheckTitleMatchWords(query.SearchTerm, title)) - { return releases; - } var detailsStr = anchor.GetAttribute("href"); var cat = detailsStr.Split('/')[3]; - var categories = MapTrackerCatToNewznab(cat); // 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; - } var publishStr = row.QuerySelectorAll("td")[2].TextContent.Trim(); var publishDate = TryToParseDate(publishStr, DateTime.Now);