From 0c9e031e7991b13a80cc4008914a23e9be032376 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 29 Mar 2023 09:18:14 +1300 Subject: [PATCH] norbits: add freeleech search. #9456 --- src/Jackett.Common/Indexers/NorBits.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Jackett.Common/Indexers/NorBits.cs b/src/Jackett.Common/Indexers/NorBits.cs index fa0bb18a8..35ebd9e58 100644 --- a/src/Jackett.Common/Indexers/NorBits.cs +++ b/src/Jackett.Common/Indexers/NorBits.cs @@ -18,6 +18,7 @@ using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; using Newtonsoft.Json.Linq; using NLog; +using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { @@ -49,6 +50,7 @@ namespace Jackett.Common.Indexers cacheService: cs, configData: new ConfigurationDataNorbits()) { + configData.AddDynamic("freeleech", new BoolConfigurationItem("Search freeleech only") { Value = false }); } private TorznabCapabilities SetCapabilities() @@ -366,6 +368,9 @@ namespace Jackett.Common.Indexers term = "all"; } + if (((BoolConfigurationItem)configData.GetDynamic("freeleech")).Value) + parameters.Add("FL", "1"); + // Building our query searchUrl += "?" + searchterm + "&" + parameters.GetQueryString();