mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
Fixed: Incorrect logic for newznab category parsing
This commit is contained in:
parent
6636cbc4ae
commit
7303cdf555
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue