New: (Indexers) Per indexer api and download limits

This commit is contained in:
Qstick
2021-07-05 17:30:13 -04:00
parent 0fe2cf5c2d
commit 4116c10caa
52 changed files with 298 additions and 80 deletions
@@ -0,0 +1,23 @@
using FluentValidation;
using NzbDrone.Core.Annotations;
namespace NzbDrone.Core.Indexers
{
public class IndexerCommonSettingsValidator : AbstractValidator<IndexerBaseSettings>
{
public IndexerCommonSettingsValidator()
{
}
}
public class IndexerBaseSettings
{
private static readonly IndexerCommonSettingsValidator Validator = new IndexerCommonSettingsValidator();
[FieldDefinition(1, Type = FieldType.Number, Label = "Query Limit", HelpText = "The number of queries per day Prowlarr will allow to the site", Advanced = true)]
public int? QueryLimit { get; set; }
[FieldDefinition(2, Type = FieldType.Number, Label = "Grab Limit", HelpText = "The number of grabs per day Prowlarr will allow to the site", Advanced = true)]
public int? GrabLimit { get; set; }
}
}