From 56b9da16cfb67cf45b346e810097cd305c3e80f5 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 5 Feb 2025 19:24:36 +0200 Subject: [PATCH] Fix release category selector on all themes for NorBits Co-authored-by: Garfield69 --- src/NzbDrone.Core/Indexers/Definitions/NorBits.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/NorBits.cs b/src/NzbDrone.Core/Indexers/Definitions/NorBits.cs index 067f94077..4287f515f 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/NorBits.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/NorBits.cs @@ -287,8 +287,8 @@ public IList ParseResponse(IndexerResponse indexerResponse) var title = qDetails?.GetAttribute("title").Trim(); var details = _settings.BaseUrl + 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)));