|
|
|
@ -91,7 +91,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
|
NzbMatrixEnabled = _indexerProvider.GetSettings(typeof(NzbMatrix)).Enable,
|
|
|
|
|
NzbsRUsEnabled = _indexerProvider.GetSettings(typeof(NzbsRUs)).Enable,
|
|
|
|
|
NewzbinEnabled = _indexerProvider.GetSettings(typeof(Newzbin)).Enable,
|
|
|
|
|
NewznabEnabled = _indexerProvider.GetSettings(typeof(Newzbin)).Enable,
|
|
|
|
|
NewznabEnabled = _indexerProvider.GetSettings(typeof(Newznab)).Enable,
|
|
|
|
|
|
|
|
|
|
NewznabDefinitions = _newznabProvider.All(),
|
|
|
|
|
});
|
|
|
|
@ -299,7 +299,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
|
return new JsonResult { Data = "ok" };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ViewResult AddNewznabProvider()
|
|
|
|
|
public PartialViewResult AddNewznabProvider()
|
|
|
|
|
{
|
|
|
|
|
var newznab = new NewznabDefinition
|
|
|
|
|
{
|
|
|
|
@ -312,7 +312,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
|
|
|
|
|
|
ViewData["ProviderId"] = id;
|
|
|
|
|
|
|
|
|
|
return View("NewznabProvider", newznab);
|
|
|
|
|
return PartialView("NewznabProvider", newznab);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ActionResult GetNewznabProviderView(NewznabDefinition provider)
|
|
|
|
@ -387,6 +387,10 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
|
newzbinSettings.Enable = data.NewzbinEnabled;
|
|
|
|
|
_indexerProvider.SaveSettings(newzbinSettings);
|
|
|
|
|
|
|
|
|
|
var newznabSettings = _indexerProvider.GetSettings(typeof(Newznab));
|
|
|
|
|
newznabSettings.Enable = data.NewznabEnabled;
|
|
|
|
|
_indexerProvider.SaveSettings(newznabSettings);
|
|
|
|
|
|
|
|
|
|
_configProvider.NzbsOrgUId = data.NzbsOrgUId;
|
|
|
|
|
_configProvider.NzbsOrgHash = data.NzbsOrgHash;
|
|
|
|
|
|
|
|
|
|