mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
@@ -181,6 +181,11 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
qc.Add("q", term);
|
qc.Add("q", term);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Settings.FreeLeechOnly)
|
||||||
|
{
|
||||||
|
qc.Add("free", "on");
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var cat in Capabilities.Categories.MapTorznabCapsToTrackers(categories))
|
foreach (var cat in Capabilities.Categories.MapTorznabCapsToTrackers(categories))
|
||||||
{
|
{
|
||||||
qc.Add(cat, string.Empty);
|
qc.Add(cat, string.Empty);
|
||||||
@@ -362,6 +367,9 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
[FieldDefinition(2, Label = "Cookie", HelpText = "Site Cookie")]
|
[FieldDefinition(2, Label = "Cookie", HelpText = "Site Cookie")]
|
||||||
public string Cookie { get; set; }
|
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()
|
public NzbDroneValidationResult Validate()
|
||||||
{
|
{
|
||||||
return new NzbDroneValidationResult(Validator.Validate(this));
|
return new NzbDroneValidationResult(Validator.Validate(this));
|
||||||
|
Reference in New Issue
Block a user