From bce5f6d3e5b82504c055b01cbe635a4b77ca9a17 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 6 Feb 2025 05:47:07 +1300 Subject: [PATCH] norbits: fix ccb062668d728fa043e3ad4d7db9467e10d73423 --- src/Jackett.Common/Indexers/Definitions/NorBits.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Indexers/Definitions/NorBits.cs b/src/Jackett.Common/Indexers/Definitions/NorBits.cs index bf1e12a2b..64a4d8c85 100644 --- a/src/Jackett.Common/Indexers/Definitions/NorBits.cs +++ b/src/Jackett.Common/Indexers/Definitions/NorBits.cs @@ -287,8 +287,8 @@ namespace Jackett.Common.Indexers.Definitions var title = qDetails?.GetAttribute("title").Trim(); var details = new Uri(SiteLink + qDetails?.GetAttribute("href").TrimStart('/')); - var mainCategory = row.QuerySelector("td:nth-of-type(1) > a[href*=\"main_cat[]\"]")?.GetAttribute("href")?.Split('?').Last(); - var secondCategory = row.QuerySelector("td:nth-of-type(1) > a[href*=\"sub2_cat[]\"]")?.GetAttribute("href")?.Split('?').Last(); + var mainCategory = row.QuerySelector("td:nth-of-type(1) a[href*=\"main_cat[]\"]")?.GetAttribute("href")?.Split('?').Last(); + var secondCategory = row.QuerySelector("td:nth-of-type(1) a[href*=\"sub2_cat[]\"]")?.GetAttribute("href")?.Split('?').Last(); var categoryList = new[] { mainCategory, secondCategory }; var cat = string.Join("&", categoryList.Where(c => !string.IsNullOrWhiteSpace(c)));