New: (IPTorrents) Add freeleech only option

Fixes #314
pull/318/head
Qstick 3 years ago
parent 5c4c042b2e
commit b11bf284dc

@ -181,6 +181,11 @@ namespace NzbDrone.Core.Indexers.Definitions
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 @@ namespace NzbDrone.Core.Indexers.Definitions
[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…
Cancel
Save