mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
AutoConfigure for SAB is setup, it works for systems with NzbDrone and SABnzbd on the same server only.
This commit is contained in:
@@ -296,26 +296,18 @@ namespace NzbDrone.Web.Controllers
|
||||
return new JsonResult { Data = "ok" };
|
||||
}
|
||||
|
||||
public JsonResult AutoConfigureSab(string username, string password)
|
||||
public JsonResult AutoConfigureSab()
|
||||
{
|
||||
SabnzbdInfoModel info;
|
||||
|
||||
try
|
||||
{
|
||||
//info = _autoConfigureProvider.AutoConfigureSab(username, password);
|
||||
info = new SabnzbdInfoModel
|
||||
{
|
||||
ApiKey = "123456",
|
||||
Port = 2222
|
||||
};
|
||||
var info = _autoConfigureProvider.AutoConfigureSab();
|
||||
return Json(info, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
|
||||
catch (Exception)
|
||||
{
|
||||
return new JsonResult { Data = "failed" };
|
||||
}
|
||||
|
||||
return Json(info);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
|
Reference in New Issue
Block a user