mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
Retention check added to DecisionEngine.
Retention is configurable from Settings/Indexers.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user