mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 03:38:31 +00:00
norbits: add freeleech search. #9456
This commit is contained in:
parent
241b84ee4f
commit
0c9e031e79
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue