|
|
@ -1,4 +1,5 @@
|
|
|
|
using FluentValidation;
|
|
|
|
using FluentValidation;
|
|
|
|
|
|
|
|
using NzbDrone.Api.Validation;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Api.Config
|
|
|
|
namespace NzbDrone.Api.Config
|
|
|
@ -16,8 +17,7 @@ namespace NzbDrone.Api.Config
|
|
|
|
.GreaterThanOrEqualTo(0);
|
|
|
|
.GreaterThanOrEqualTo(0);
|
|
|
|
|
|
|
|
|
|
|
|
SharedValidator.RuleFor(c => c.RssSyncInterval)
|
|
|
|
SharedValidator.RuleFor(c => c.RssSyncInterval)
|
|
|
|
.InclusiveBetween(10, 120)
|
|
|
|
.IsValidRssSyncInterval();
|
|
|
|
.When(c => c.RssSyncInterval > 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|