mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-03-05 13:40:08 -05:00
Fixed: Incorrect logic for newznab category parsing
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user