diff --git a/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs b/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs index ab94cecc1..7a9a284a7 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs @@ -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));