New: Setting to prevent download of early releases (#485)

* New: Setting to prevent download of early releases

* Fixup! Test and Wording
This commit is contained in:
Qstick
2018-09-20 22:21:26 -04:00
committed by GitHub
parent 9b0a7c60ed
commit e08f39ebe0
17 changed files with 222 additions and 8 deletions
@@ -76,10 +76,13 @@ namespace NzbDrone.Core.Indexers.Newznab
[FieldDefinition(3, Label = "Categories", HelpText = "Comma Separated list, leave blank to disable standard/daily shows", Advanced = true)]
public IEnumerable<int> Categories { get; set; }
[FieldDefinition(4, Label = "Additional Parameters", HelpText = "Additional Newznab parameters", Advanced = true)]
[FieldDefinition(4, Type = FieldType.Number, Label = "Early Download Limit", HelpText = "Time before release date Lidarr will download from this indexer, empty is no limit", Unit = "days", Advanced = true)]
public int? EarlyReleaseLimit { get; set; }
[FieldDefinition(5, Label = "Additional Parameters", HelpText = "Additional Newznab parameters", Advanced = true)]
public string AdditionalParameters { get; set; }
// Field 5 is used by TorznabSettings MinimumSeeders
// Field 6 is used by TorznabSettings MinimumSeeders
// If you need to add another field here, update TorznabSettings as well and this comment
public virtual NzbDroneValidationResult Validate()