mirror of https://github.com/Jackett/Jackett
hdbitsapi: add filter freeleech config option. resolves #13244
This commit is contained in:
parent
554e79f09b
commit
cd0af8012e
|
@ -132,6 +132,8 @@ namespace Jackett.Common.Indexers
|
|||
var releases = new List<ReleaseInfo>();
|
||||
foreach (JObject r in response["data"])
|
||||
{
|
||||
if (configData.FilterFreeleech.Value && (string)r["freeleech"] != "yes")
|
||||
continue;
|
||||
var title = (string)r["name"];
|
||||
// if tv then match query keywords against title #12753
|
||||
if (!query.IsImdbQuery && !query.MatchQueryStringAND(title))
|
||||
|
|
|
@ -9,9 +9,15 @@ namespace Jackett.Common.Models.IndexerConfig.Bespoke
|
|||
public MultiSelectConfigurationItem Codecs { get; private set; }
|
||||
public MultiSelectConfigurationItem Mediums { get; private set; }
|
||||
public MultiSelectConfigurationItem Origins { get; private set; }
|
||||
public BoolConfigurationItem FilterFreeleech { get; private set; }
|
||||
|
||||
public ConfigurationDataHDBitsApi()
|
||||
{
|
||||
FilterFreeleech = new BoolConfigurationItem("Filter FreeLeech only")
|
||||
{
|
||||
Value = false
|
||||
};
|
||||
|
||||
Codecs = new MultiSelectConfigurationItem("Codec", new Dictionary<string, string>()
|
||||
{
|
||||
{"0", "Undefined"},
|
||||
|
|
Loading…
Reference in New Issue