From 6b9a378eafec2d623d195ea888f9a0a810afafe5 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 21 Nov 2023 19:52:58 +0200 Subject: [PATCH] Fixed: Minimum refresh interval for import list presets --- frontend/src/Store/Actions/Settings/importLists.js | 2 +- src/NzbDrone.Core/ImportLists/RSSImport/RSSImport.cs | 2 ++ .../ImportLists/RadarrList2/IMDb/IMDbListImport.cs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/Store/Actions/Settings/importLists.js b/frontend/src/Store/Actions/Settings/importLists.js index ce596abd4..53416272b 100644 --- a/frontend/src/Store/Actions/Settings/importLists.js +++ b/frontend/src/Store/Actions/Settings/importLists.js @@ -122,7 +122,7 @@ export default { return selectProviderSchema(state, section, payload, (selectedSchema) => { selectedSchema.name = payload.presetName ?? payload.implementationName; selectedSchema.implementationName = payload.implementationName; - selectedSchema.minRefreshInterval = payload.minRefreshInterval; + selectedSchema.minRefreshInterval ??= payload.minRefreshInterval; selectedSchema.minimumAvailability = 'released'; selectedSchema.rootFolderPath = ''; diff --git a/src/NzbDrone.Core/ImportLists/RSSImport/RSSImport.cs b/src/NzbDrone.Core/ImportLists/RSSImport/RSSImport.cs index 22b26ef49..9668dd7b9 100644 --- a/src/NzbDrone.Core/ImportLists/RSSImport/RSSImport.cs +++ b/src/NzbDrone.Core/ImportLists/RSSImport/RSSImport.cs @@ -38,6 +38,7 @@ namespace NzbDrone.Core.ImportLists.RSSImport EnableAuto = true, QualityProfileId = 1, Implementation = GetType().Name, + MinRefreshInterval = MinRefreshInterval, Settings = new RSSImportSettings { Link = "https://rss.imdb.com/list/YOURLISTID" }, }; yield return new ImportListDefinition @@ -47,6 +48,7 @@ namespace NzbDrone.Core.ImportLists.RSSImport EnableAuto = true, QualityProfileId = 1, Implementation = GetType().Name, + MinRefreshInterval = MinRefreshInterval, Settings = new RSSImportSettings { Link = "https://rss.imdb.com/user/IMDBUSERID/watchlist" }, }; } diff --git a/src/NzbDrone.Core/ImportLists/RadarrList2/IMDb/IMDbListImport.cs b/src/NzbDrone.Core/ImportLists/RadarrList2/IMDb/IMDbListImport.cs index c137c1eca..b5033d5b7 100644 --- a/src/NzbDrone.Core/ImportLists/RadarrList2/IMDb/IMDbListImport.cs +++ b/src/NzbDrone.Core/ImportLists/RadarrList2/IMDb/IMDbListImport.cs @@ -47,6 +47,7 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList EnableAuto = true, QualityProfileId = 1, Implementation = GetType().Name, + MinRefreshInterval = MinRefreshInterval, Settings = new IMDbListSettings { ListId = "top250" }, }; yield return new ImportListDefinition @@ -56,6 +57,7 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList EnableAuto = true, QualityProfileId = 1, Implementation = GetType().Name, + MinRefreshInterval = MinRefreshInterval, Settings = new IMDbListSettings { ListId = "popular" }, }; }