mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Passwords inputs are now the correct type. Fix configure_indexer not returning errors. Fix build warning. Change AB, HDT, MTTV, PHD, ST to use generic web client.
This commit is contained in:
@@ -172,17 +172,15 @@ namespace Jackett.Controllers
|
||||
catch (Exception ex)
|
||||
{
|
||||
jsonReply["result"] = "error";
|
||||
//jsonReply["error"] = Newtonsoft.Json.JsonConvert.SerializeObject(ex);
|
||||
jsonReply["error"] = ex.Message;
|
||||
if (ex is ExceptionWithConfigData)
|
||||
{
|
||||
jsonReply["config"] = ((ExceptionWithConfigData)ex).ConfigData.ToJson();
|
||||
}
|
||||
}
|
||||
}
|
||||
return Json(jsonReply);
|
||||
}
|
||||
|
||||
|
||||
|
||||
[Route("get_indexers")]
|
||||
[HttpGet]
|
||||
public IHttpActionResult Indexers()
|
||||
@@ -323,13 +321,10 @@ namespace Jackett.Controllers
|
||||
serverService.ReserveUrls(true);
|
||||
}
|
||||
|
||||
// This is giving a warning - is there a better way of doing this?
|
||||
Task.Run(() =>
|
||||
{
|
||||
(new Thread(() => {
|
||||
Thread.Sleep(500);
|
||||
serverService.Start();
|
||||
});
|
||||
|
||||
})).Start();
|
||||
}
|
||||
|
||||
jsonReply["result"] = "success";
|
||||
@@ -342,14 +337,6 @@ namespace Jackett.Controllers
|
||||
}
|
||||
return Json(jsonReply);
|
||||
}
|
||||
|
||||
|
||||
[Route("jackett_restart")]
|
||||
[HttpPost]
|
||||
public IHttpActionResult Restart()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user