You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Prowlarr/src/NzbDrone.Core/Indexers/IndexerBaseSettings.cs

24 lines
903 B

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 within a rolling 24 hour period 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 within a rolling 24 hour period Prowlarr will allow to the site", Advanced = true)]
public int? GrabLimit { get; set; }
}
}