1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

New: Optional disable RSS Sync (set interval to zero)

This commit is contained in:
Mark McDowall
2014-04-10 18:14:03 -07:00
parent 187724f74c
commit fe3351e7ac
2 changed files with 5 additions and 2 deletions
@@ -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);
}
}
}