diff --git a/frontend/src/Settings/ImportLists/Options/ImportListOptions.js b/frontend/src/Settings/ImportLists/Options/ImportListOptions.js index f69e65a69..c3ff727a6 100644 --- a/frontend/src/Settings/ImportLists/Options/ImportListOptions.js +++ b/frontend/src/Settings/ImportLists/Options/ImportListOptions.js @@ -11,6 +11,7 @@ import translate from 'Utilities/String/translate'; function ImportListOptions(props) { const { + advancedSettings, isFetching, error, settings, @@ -27,52 +28,59 @@ function ImportListOptions(props) { ]; return ( -
); } diff --git a/src/NzbDrone.Core/Configuration/ConfigService.cs b/src/NzbDrone.Core/Configuration/ConfigService.cs index 05ce821f7..c38203253 100644 --- a/src/NzbDrone.Core/Configuration/ConfigService.cs +++ b/src/NzbDrone.Core/Configuration/ConfigService.cs @@ -120,7 +120,7 @@ namespace NzbDrone.Core.Configuration public int ImportListSyncInterval { - get { return GetValueInt("ImportListSyncInterval", 240); } + get { return GetValueInt("ImportListSyncInterval", 24); } set { SetValue("ImportListSyncInterval", value); } } diff --git a/src/NzbDrone.Core/Jobs/TaskManager.cs b/src/NzbDrone.Core/Jobs/TaskManager.cs index 0c56671bb..8354256c8 100644 --- a/src/NzbDrone.Core/Jobs/TaskManager.cs +++ b/src/NzbDrone.Core/Jobs/TaskManager.cs @@ -147,19 +147,10 @@ namespace NzbDrone.Core.Jobs private int GetImportListSyncInterval() { - var interval = _configService.ImportListSyncInterval; + //Enforce 6 hour min on list sync + var interval = Math.Max(_configService.ImportListSyncInterval, 6); - if (interval > 0 && interval < 10) - { - return 10; - } - - if (interval < 0) - { - return 0; - } - - return interval; + return interval * 60; } public void Handle(CommandExecutedEvent message) diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 58b248145..84cd11a12 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -391,7 +391,7 @@ "Importing": "Importing", "ImportListStatusCheckAllClientMessage": "All lists are unavailable due to failures", "ImportListStatusCheckSingleClientMessage": "Lists unavailable due to failures: {0}", - "ImportListSyncIntervalHelpText": "How often Radarr syncs with your lists.", + "ImportListSyncIntervalHelpText": "How often Radarr syncs with your lists. Minimum value of 6 hours", "ImportMechanismHealthCheckMessage": "Enable Completed Download Handling", "ImportMovies": "Import Movies", "ImportRootPath": "Point Radarr to the folder containing all of your movies, not a specific one. e.g. {0} and not {1}",