1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-20 21:55:03 -04:00

New: Minimum Age setting to deal with propagation issues (Usenet only)

This commit is contained in:
Mark McDowall
2014-12-15 15:40:53 -08:00
parent eeafa2cb64
commit 580f03a5bc
12 changed files with 150 additions and 5 deletions
@@ -9,6 +9,12 @@ namespace NzbDrone.Api.Config
public IndexerConfigModule(IConfigService configService)
: base(configService)
{
SharedValidator.RuleFor(c => c.MinimumAge)
.GreaterThan(0);
SharedValidator.RuleFor(c => c.Retention)
.GreaterThanOrEqualTo(0);
SharedValidator.RuleFor(c => c.RssSyncInterval)
.InclusiveBetween(10, 120)
.When(c => c.RssSyncInterval > 0);