From 2c56d606780a8aadc51cae1989432afe0be6b8d3 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 24 Jan 2017 15:26:51 -0500 Subject: [PATCH] #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 --- src/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs | 4 ++-- src/NzbDrone.Core/Configuration/ConfigService.cs | 2 +- .../Settings/Indexers/Options/IndexerOptionsViewTemplate.hbs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs b/src/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs index 8ad51f1e7..ee834d507 100644 --- a/src/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs +++ b/src/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs @@ -32,7 +32,7 @@ public void Add_new_value_to_database() [Test] public void Get_value_should_return_default_when_no_value() { - Subject.RssSyncInterval.Should().Be(15); + Subject.RssSyncInterval.Should().Be(60); } [Test] @@ -47,7 +47,7 @@ public void get_value_with_persist_should_store_default_value() public void get_value_with_out_persist_should_not_store_default_value() { var interval = Subject.RssSyncInterval; - interval.Should().Be(15); + interval.Should().Be(60); Mocker.GetMock().Verify(c => c.Insert(It.IsAny()), Times.Never()); } diff --git a/src/NzbDrone.Core/Configuration/ConfigService.cs b/src/NzbDrone.Core/Configuration/ConfigService.cs index 4eae607ae..d19cddd67 100644 --- a/src/NzbDrone.Core/Configuration/ConfigService.cs +++ b/src/NzbDrone.Core/Configuration/ConfigService.cs @@ -100,7 +100,7 @@ public string RecycleBin public int RssSyncInterval { - get { return GetValueInt("RssSyncInterval", 15); } + get { return GetValueInt("RssSyncInterval", 60); } set { SetValue("RssSyncInterval", value); } } diff --git a/src/UI/Settings/Indexers/Options/IndexerOptionsViewTemplate.hbs b/src/UI/Settings/Indexers/Options/IndexerOptionsViewTemplate.hbs index 056d12648..7770ba4ee 100644 --- a/src/UI/Settings/Indexers/Options/IndexerOptionsViewTemplate.hbs +++ b/src/UI/Settings/Indexers/Options/IndexerOptionsViewTemplate.hbs @@ -34,7 +34,7 @@
- +