mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
Fixed: Category parsing for some not-so-great Torznab feeds
MoreThanTv
This commit is contained in:
@@ -127,6 +127,12 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
var cats = TryGetMultipleNewznabAttributes(item, "category");
|
||||
var results = new List<IndexerCategory>();
|
||||
|
||||
// Try to find <category> elements for some indexers that suck at following the rules.
|
||||
if (results.Count == 0)
|
||||
{
|
||||
cats = item.Elements("category").Select(e => e.Value).ToList();
|
||||
}
|
||||
|
||||
foreach (var cat in cats)
|
||||
{
|
||||
var indexerCat = capabilities.Categories.MapTrackerCatToNewznab(cat);
|
||||
|
||||
Reference in New Issue
Block a user