Fixed: Incorrect logic for newznab category parsing

This commit is contained in:
Qstick 2022-12-22 10:05:52 -06:00
parent 6636cbc4ae
commit 7303cdf555
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ protected override ICollection<IndexerCategory> GetCategory(XElement item)
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();
}

View file

@ -169,7 +169,7 @@ protected override ICollection<IndexerCategory> GetCategory(XElement item)
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();
}