#292 - Allow longer threshold for RSS Sync (#428)

* #292 - Allow longer threshold for RSS Sync

Update RSS Sync interval default to 60 minutes, and don't allow values below 60 or higher than 720 minutes (12 hours)

* allow minimum of 10 mintes
pull/2/head
Devin Buhl 8 years ago committed by Leonardo Galli
parent a0c8127ecf
commit 2c56d60678

@ -32,7 +32,7 @@ namespace NzbDrone.Core.Test.Configuration
[Test] [Test]
public void Get_value_should_return_default_when_no_value() public void Get_value_should_return_default_when_no_value()
{ {
Subject.RssSyncInterval.Should().Be(15); Subject.RssSyncInterval.Should().Be(60);
} }
[Test] [Test]
@ -47,7 +47,7 @@ namespace NzbDrone.Core.Test.Configuration
public void get_value_with_out_persist_should_not_store_default_value() public void get_value_with_out_persist_should_not_store_default_value()
{ {
var interval = Subject.RssSyncInterval; var interval = Subject.RssSyncInterval;
interval.Should().Be(15); interval.Should().Be(60);
Mocker.GetMock<IConfigRepository>().Verify(c => c.Insert(It.IsAny<Config>()), Times.Never()); Mocker.GetMock<IConfigRepository>().Verify(c => c.Insert(It.IsAny<Config>()), Times.Never());
} }

@ -100,7 +100,7 @@ namespace NzbDrone.Core.Configuration
public int RssSyncInterval public int RssSyncInterval
{ {
get { return GetValueInt("RssSyncInterval", 15); } get { return GetValueInt("RssSyncInterval", 60); }
set { SetValue("RssSyncInterval", value); } set { SetValue("RssSyncInterval", value); }
} }

@ -34,7 +34,7 @@
</div> </div>
<div class="col-sm-2 col-sm-pull-1"> <div class="col-sm-2 col-sm-pull-1">
<input type="number" name="rssSyncInterval" class="form-control" min="0" max="120"/> <input type="number" name="rssSyncInterval" class="form-control" min="0" max="720"/>
</div> </div>
</div> </div>
</fieldset> </fieldset>

Loading…
Cancel
Save