diff --git a/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBits.cs b/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBits.cs index 569465925..43425cb96 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBits.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBits.cs @@ -30,7 +30,7 @@ namespace NzbDrone.Core.Indexers.HDBits public override IParseIndexerResponse GetParser() { - return new HDBitsParser(Settings); + return new HDBitsParser(Settings, Capabilities.Categories); } private IndexerCapabilities SetCapabilities() diff --git a/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBitsParser.cs b/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBitsParser.cs index 3c1d43371..ad76e0970 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBitsParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/HDBits/HDBitsParser.cs @@ -12,10 +12,12 @@ namespace NzbDrone.Core.Indexers.HDBits public class HDBitsParser : IParseIndexerResponse { private readonly HDBitsSettings _settings; + private readonly IndexerCapabilitiesCategories _categories; - public HDBitsParser(HDBitsSettings settings) + public HDBitsParser(HDBitsSettings settings, IndexerCapabilitiesCategories categories) { _settings = settings; + _categories = categories; } public IList ParseResponse(IndexerResponse indexerResponse) @@ -65,6 +67,7 @@ namespace NzbDrone.Core.Indexers.HDBits Guid = string.Format("HDBits-{0}", id), Title = result.Name, Size = result.Size, + Categories = _categories.MapTrackerCatToNewznab(result.TypeCategory.ToString()), InfoHash = result.Hash, DownloadUrl = GetDownloadUrl(id), InfoUrl = GetInfoUrl(id),