diff --git a/src/Jackett.Common/Indexers/BeyondHDAPI.cs b/src/Jackett.Common/Indexers/BeyondHDAPI.cs index 485247a73..59825e6d1 100644 --- a/src/Jackett.Common/Indexers/BeyondHDAPI.cs +++ b/src/Jackett.Common/Indexers/BeyondHDAPI.cs @@ -93,6 +93,15 @@ namespace Jackett.Common.Indexers { BHDParams.search, query.GetQueryString() }, }; + if (configData.FilterFreeleech.Value) + postData.Add(BHDParams.freeleech, "1"); + if (configData.FilterLimited.Value) + postData.Add(BHDParams.limited, "1"); + if (configData.FilterRefund.Value) + postData.Add(BHDParams.refund, "1"); + if (configData.FilterRewind.Value) + postData.Add(BHDParams.rewind, "1"); + if (query.IsTVSearch) postData.Add(BHDParams.categories, "TV"); else if (query.IsMovieSearch) diff --git a/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataBeyondHDApi.cs b/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataBeyondHDApi.cs index 67dc207fb..90c57c2db 100644 --- a/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataBeyondHDApi.cs +++ b/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataBeyondHDApi.cs @@ -9,6 +9,10 @@ namespace Jackett.Common.Models.IndexerConfig.Bespoke public StringConfigurationItem RSSKey { get; private set; } public DisplayInfoConfigurationItem Instructions { get; private set; } public BoolConfigurationItem AddHybridFeaturesToTitle { get; private set; } + public BoolConfigurationItem FilterFreeleech { get; private set; } + public BoolConfigurationItem FilterLimited { get; private set; } + public BoolConfigurationItem FilterRefund { get; private set; } + public BoolConfigurationItem FilterRewind { get; private set; } public ConfigurationDataBeyondHDApi(string instructionMessageOptional) { @@ -16,6 +20,10 @@ namespace Jackett.Common.Models.IndexerConfig.Bespoke RSSKey = new StringConfigurationItem("RSS Key"); Instructions = new DisplayInfoConfigurationItem("", instructionMessageOptional); AddHybridFeaturesToTitle = new BoolConfigurationItem("Include DV/HDR10 in title when release has multiple HDR formats."); + FilterFreeleech = new BoolConfigurationItem("Filter freeleech"); + FilterLimited = new BoolConfigurationItem("Filter freeleech (limited UL)"); + FilterRefund = new BoolConfigurationItem("Filter refund"); + FilterRewind = new BoolConfigurationItem("Filter rewind"); } } }