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

View File

@ -9,7 +9,9 @@ namespace NzbDrone.Api.Config
public IndexerConfigModule(IConfigService configService) public IndexerConfigModule(IConfigService configService)
: base(configService) : base(configService)
{ {
SharedValidator.RuleFor(c => c.RssSyncInterval).InclusiveBetween(10, 120); SharedValidator.RuleFor(c => c.RssSyncInterval)
.InclusiveBetween(10, 120)
.When(c => c.RssSyncInterval > 0);
} }
} }
} }

View File

@ -13,10 +13,11 @@
<label class="control-label">RSS Sync Interval</label> <label class="control-label">RSS Sync Interval</label>
<div class="controls"> <div class="controls">
<input type="number" min="10" max="120" name="rssSyncInterval"/> <input type="number" name="rssSyncInterval"/>
<span class="help-inline"> <span class="help-inline">
<i class="icon-nd-form-warning" title="This will apply to all indexers, please follow the rules set forth by them"/> <i class="icon-nd-form-warning" title="This will apply to all indexers, please follow the rules set forth by them"/>
<i class="icon-nd-form-info" title="Set to zero to disable (this will stop all automatic release grabbing)"/>
</span> </span>
</div> </div>
</div> </div>