Fixed: Incorrect logic for newznab category parsing

pull/1260/head
Qstick 2 years ago
parent 6636cbc4ae
commit 7303cdf555

@ -128,7 +128,7 @@ namespace NzbDrone.Core.Indexers.Newznab
var results = new List<IndexerCategory>();
// Try to find <category> 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();
}

@ -169,7 +169,7 @@ namespace NzbDrone.Core.Indexers.Torznab
var results = new List<IndexerCategory>();
// Try to find <category> 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();
}

Loading…
Cancel
Save