mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Backlog searching will be disabled by default. Option is available in Settings/Misc
This commit is contained in:
@@ -221,6 +221,14 @@ namespace NzbDrone.Web.Controllers
|
||||
return View(model);
|
||||
}
|
||||
|
||||
public ActionResult Misc()
|
||||
{
|
||||
var model = new MiscSettingsModel();
|
||||
model.EnableBacklogSearching = _configProvider.EnableBacklogSearching;
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
||||
public PartialViewResult AddProfile()
|
||||
{
|
||||
var qualityProfile = new QualityProfile
|
||||
@@ -582,6 +590,19 @@ namespace NzbDrone.Web.Controllers
|
||||
return GetInvalidModelResult();
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public JsonResult SaveMisc(MiscSettingsModel data)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
_configProvider.EnableBacklogSearching = data.EnableBacklogSearching;
|
||||
|
||||
return GetSuccessResult();
|
||||
}
|
||||
|
||||
return GetInvalidModelResult();
|
||||
}
|
||||
|
||||
private JsonResult GetSuccessResult()
|
||||
{
|
||||
return Json(new NotificationResult() { Title = "Settings Saved" });
|
||||
|
Reference in New Issue
Block a user