Fixed: (Exoticaz) Category parsing kills search/feed

Fixes #938
This commit is contained in:
Qstick
2022-06-20 21:39:20 -05:00
parent 4334e7eef1
commit 0db804b647
4 changed files with 5749 additions and 2 deletions
@@ -8,7 +8,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz
{
public string Url { get; set; }
public string Download { get; set; }
public string Category { get; set; }
public Dictionary<string, string> Category { get; set; }
[JsonProperty(PropertyName = "movie_tv")]
public AvistazIdInfo MovieTvinfo { get; set; }
@@ -65,7 +65,7 @@ namespace NzbDrone.Core.Indexers.Definitions
{
var cat = row.Category;
return _categories.MapTrackerCatToNewznab(cat).ToList();
return cat.SelectMany(c => _categories.MapTrackerCatToNewznab(c.Key)).ToList();
}
}
}