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

pull/2/head
Mark McDowall 11 years ago
parent 187724f74c
commit fe3351e7ac

@ -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);
} }
} }
} }

@ -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>

Loading…
Cancel
Save