Fixed: Minimum refresh interval for import list presets

pull/9446/head
Bogdan 12 months ago
parent b4562e6236
commit 6b9a378eaf

@ -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 = '';

@ -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" },
};
}

@ -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" },
};
}

Loading…
Cancel
Save