mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-20 20:00:48 +02:00
parent
5c4c042b2e
commit
b11bf284dc
1 changed files with 8 additions and 0 deletions
|
|
@ -181,6 +181,11 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categori
|
|||
qc.Add("q", term);
|
||||
}
|
||||
|
||||
if (Settings.FreeLeechOnly)
|
||||
{
|
||||
qc.Add("free", "on");
|
||||
}
|
||||
|
||||
foreach (var cat in Capabilities.Categories.MapTorznabCapsToTrackers(categories))
|
||||
{
|
||||
qc.Add(cat, string.Empty);
|
||||
|
|
@ -362,6 +367,9 @@ public IPTorrentsSettings()
|
|||
[FieldDefinition(2, Label = "Cookie", HelpText = "Site Cookie")]
|
||||
public string Cookie { get; set; }
|
||||
|
||||
[FieldDefinition(3, Label = "FreeLeech Only", Type = FieldType.Checkbox, Advanced = true, HelpText = "Search Freeleech torrents only")]
|
||||
public bool FreeLeechOnly { get; set; }
|
||||
|
||||
public NzbDroneValidationResult Validate()
|
||||
{
|
||||
return new NzbDroneValidationResult(Validator.Validate(this));
|
||||
|
|
|
|||
Loading…
Reference in a new issue