From fe3351e7ac0cafefdfc4a97b3ca5c0b1a4ba3b6c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 10 Apr 2014 18:14:03 -0700 Subject: [PATCH] New: Optional disable RSS Sync (set interval to zero) --- src/NzbDrone.Api/Config/IndexerConfigModule.cs | 4 +++- .../Settings/Indexers/Options/IndexerOptionsViewTemplate.html | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Api/Config/IndexerConfigModule.cs b/src/NzbDrone.Api/Config/IndexerConfigModule.cs index 10df7f2ae..aa9c8d5bf 100644 --- a/src/NzbDrone.Api/Config/IndexerConfigModule.cs +++ b/src/NzbDrone.Api/Config/IndexerConfigModule.cs @@ -9,7 +9,9 @@ namespace NzbDrone.Api.Config public IndexerConfigModule(IConfigService configService) : base(configService) { - SharedValidator.RuleFor(c => c.RssSyncInterval).InclusiveBetween(10, 120); + SharedValidator.RuleFor(c => c.RssSyncInterval) + .InclusiveBetween(10, 120) + .When(c => c.RssSyncInterval > 0); } } } \ No newline at end of file diff --git a/src/UI/Settings/Indexers/Options/IndexerOptionsViewTemplate.html b/src/UI/Settings/Indexers/Options/IndexerOptionsViewTemplate.html index 3dd1338e1..074bd219c 100644 --- a/src/UI/Settings/Indexers/Options/IndexerOptionsViewTemplate.html +++ b/src/UI/Settings/Indexers/Options/IndexerOptionsViewTemplate.html @@ -13,10 +13,11 @@
- + +