mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
Retention check added to DecisionEngine.
Retention is configurable from Settings/Indexers.
This commit is contained in:
parent
8c0efac00b
commit
462eb53897
8 changed files with 75 additions and 4 deletions
|
@ -67,6 +67,8 @@ namespace NzbDrone.Web.Controllers
|
|||
{
|
||||
return View(new IndexerSettingsModel
|
||||
{
|
||||
Retention = _configProvider.Retention,
|
||||
|
||||
NzbMatrixUsername = _configProvider.NzbMatrixUsername,
|
||||
NzbMatrixApiKey = _configProvider.NzbMatrixApiKey,
|
||||
|
||||
|
@ -338,6 +340,8 @@ namespace NzbDrone.Web.Controllers
|
|||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
_configProvider.Retention = data.Retention;
|
||||
|
||||
var nzbsOrgSettings = _indexerProvider.GetSettings(typeof(NzbsOrg));
|
||||
nzbsOrgSettings.Enable = data.NzbsOrgEnabled;
|
||||
_indexerProvider.SaveSettings(nzbsOrgSettings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue