diff --git a/src/NzbDrone.Core/Indexers/Definitions/BeyondHD.cs b/src/NzbDrone.Core/Indexers/Definitions/BeyondHD.cs index bc00ef24b..ad04d3c01 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/BeyondHD.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/BeyondHD.cs @@ -88,9 +88,23 @@ namespace NzbDrone.Core.Indexers.Definitions if (_settings.FreeleechOnly) { body.Add("freeleech", 1); + } + + if (_settings.LimitedOnly) + { body.Add("limited", 1); } + if (_settings.RefundOnly) + { + body.Add("refund", 1); + } + + if (_settings.RewindOnly) + { + body.Add("rewind", 1); + } + if (imdbId.IsNotNullOrWhiteSpace()) { body.Add("imdb_id", imdbId); @@ -272,6 +286,9 @@ namespace NzbDrone.Core.Indexers.Definitions public BeyondHDSettings() { FreeleechOnly = false; + LimitedOnly = false; + RefundOnly = false; + RewindOnly = false; } [FieldDefinition(2, Label = "API Key", HelpText = "API Key from the Site (Found in My Security => API Key)", Privacy = PrivacyLevel.ApiKey)] @@ -283,6 +300,15 @@ namespace NzbDrone.Core.Indexers.Definitions [FieldDefinition(4, Label = "Freeleech Only", Type = FieldType.Checkbox, HelpText = "Search freeleech only")] public bool FreeleechOnly { get; set; } + [FieldDefinition(5, Label = "Limited Only", Type = FieldType.Checkbox, HelpText = "Search freeleech only (Limited UL)")] + public bool LimitedOnly { get; set; } + + [FieldDefinition(6, Label = "Refund Only", Type = FieldType.Checkbox, HelpText = "Search refund only")] + public bool RefundOnly { get; set; } + + [FieldDefinition(7, Label = "Rewind Only", Type = FieldType.Checkbox, HelpText = "Search rewind only")] + public bool RewindOnly { get; set; } + public override NzbDroneValidationResult Validate() { return new NzbDroneValidationResult(Validator.Validate(this));