From 7303cdf555de46e2cb31286b027dffb0a922048e Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 22 Dec 2022 10:05:52 -0600 Subject: [PATCH] Fixed: Incorrect logic for newznab category parsing --- .../Indexers/Definitions/Newznab/NewznabRssParser.cs | 2 +- .../Indexers/Definitions/Torznab/TorznabRssParser.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Newznab/NewznabRssParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Newznab/NewznabRssParser.cs index 5f8eb652e..269b548ab 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Newznab/NewznabRssParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Newznab/NewznabRssParser.cs @@ -128,7 +128,7 @@ namespace NzbDrone.Core.Indexers.Newznab var results = new List(); // Try to find elements for some indexers that suck at following the rules. - if (results.Count == 0) + if (cats.Count == 0) { cats = item.Elements("category").Select(e => e.Value).ToList(); } diff --git a/src/NzbDrone.Core/Indexers/Definitions/Torznab/TorznabRssParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Torznab/TorznabRssParser.cs index 0e2dc6cb1..6097acb85 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Torznab/TorznabRssParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Torznab/TorznabRssParser.cs @@ -169,7 +169,7 @@ namespace NzbDrone.Core.Indexers.Torznab var results = new List(); // Try to find elements for some indexers that suck at following the rules. - if (results.Count == 0) + if (cats.Count == 0) { cats = item.Elements("category").Select(e => e.Value).ToList(); }