mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-18 21:55:12 -04:00
New: (PTP) Filter by Golden Popcorn only releases
This commit is contained in:
@@ -73,6 +73,6 @@ namespace NzbDrone.Core.Indexers.Definitions.PassThePopcorn
|
|||||||
public class PassThePopcornFlag : IndexerFlag
|
public class PassThePopcornFlag : IndexerFlag
|
||||||
{
|
{
|
||||||
public static IndexerFlag Golden => new ("golden", "Release follows Golden Popcorn quality rules");
|
public static IndexerFlag Golden => new ("golden", "Release follows Golden Popcorn quality rules");
|
||||||
public static IndexerFlag Approved => new ("approved", "Release approved by PTP");
|
public static IndexerFlag Approved => new ("approved", "Release approved by PTP staff");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
@@ -86,6 +86,11 @@ namespace NzbDrone.Core.Indexers.Definitions.PassThePopcorn
|
|||||||
parameters.Set("freetorrent", "1");
|
parameters.Set("freetorrent", "1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_settings.GoldenPopcornOnly)
|
||||||
|
{
|
||||||
|
parameters.Set("scene", "2");
|
||||||
|
}
|
||||||
|
|
||||||
var queryCats = _capabilities.Categories
|
var queryCats = _capabilities.Categories
|
||||||
.MapTorznabCapsToTrackers(searchCriteria.Categories)
|
.MapTorznabCapsToTrackers(searchCriteria.Categories)
|
||||||
.Select(int.Parse)
|
.Select(int.Parse)
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ namespace NzbDrone.Core.Indexers.Definitions.PassThePopcorn
|
|||||||
[FieldDefinition(4, Label = "IndexerSettingsFreeleechOnly", HelpText = "IndexerPassThePopcornSettingsFreeleechOnlyHelpText", Type = FieldType.Checkbox)]
|
[FieldDefinition(4, Label = "IndexerSettingsFreeleechOnly", HelpText = "IndexerPassThePopcornSettingsFreeleechOnlyHelpText", Type = FieldType.Checkbox)]
|
||||||
public bool FreeleechOnly { get; set; }
|
public bool FreeleechOnly { get; set; }
|
||||||
|
|
||||||
|
[FieldDefinition(5, Label = "IndexerPassThePopcornSettingsGoldenPopcornOnly", HelpText = "IndexerPassThePopcornSettingsGoldenPopcornOnlyHelpText", Type = FieldType.Checkbox, Advanced = true)]
|
||||||
|
public bool GoldenPopcornOnly { get; set; }
|
||||||
|
|
||||||
public override NzbDroneValidationResult Validate()
|
public override NzbDroneValidationResult Validate()
|
||||||
{
|
{
|
||||||
return new NzbDroneValidationResult(Validator.Validate(this));
|
return new NzbDroneValidationResult(Validator.Validate(this));
|
||||||
|
|||||||
@@ -380,6 +380,8 @@
|
|||||||
"IndexerPassThePopcornSettingsApiKeyHelpText": "Site API Key",
|
"IndexerPassThePopcornSettingsApiKeyHelpText": "Site API Key",
|
||||||
"IndexerPassThePopcornSettingsApiUserHelpText": "These settings are found in your PassThePopcorn security settings (Edit Profile > Security).",
|
"IndexerPassThePopcornSettingsApiUserHelpText": "These settings are found in your PassThePopcorn security settings (Edit Profile > Security).",
|
||||||
"IndexerPassThePopcornSettingsFreeleechOnlyHelpText": "Search freeleech releases only",
|
"IndexerPassThePopcornSettingsFreeleechOnlyHelpText": "Search freeleech releases only",
|
||||||
|
"IndexerPassThePopcornSettingsGoldenPopcornOnly": "Golden Popcorn only",
|
||||||
|
"IndexerPassThePopcornSettingsGoldenPopcornOnlyHelpText": "Search Golden Popcorn releases only",
|
||||||
"IndexerPriority": "Indexer Priority",
|
"IndexerPriority": "Indexer Priority",
|
||||||
"IndexerPriorityHelpText": "Indexer Priority from 1 (Highest) to 50 (Lowest). Default: 25.",
|
"IndexerPriorityHelpText": "Indexer Priority from 1 (Highest) to 50 (Lowest). Default: 25.",
|
||||||
"IndexerProxies": "Indexer Proxies",
|
"IndexerProxies": "Indexer Proxies",
|
||||||
|
|||||||
Reference in New Issue
Block a user