mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 10:07:10 +00:00
SABnzbd Auto-Configure will now display an error on failure.
This commit is contained in:
parent
ff4d90eef3
commit
a681024db2
2 changed files with 11 additions and 3 deletions
|
@ -307,7 +307,6 @@ public JsonResult DeleteNewznabProvider(int providerId)
|
||||||
return new JsonResult { Data = "ok" };
|
return new JsonResult { Data = "ok" };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public QualityModel GetUpdatedProfileList()
|
public QualityModel GetUpdatedProfileList()
|
||||||
{
|
{
|
||||||
var profiles = _qualityProvider.All().ToList();
|
var profiles = _qualityProvider.All().ToList();
|
||||||
|
@ -323,7 +322,16 @@ public JsonResult AutoConfigureSab()
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var info = _autoConfigureProvider.AutoConfigureSab();
|
var info = _autoConfigureProvider.AutoConfigureSab();
|
||||||
return Json(info, JsonRequestBehavior.AllowGet);
|
|
||||||
|
if (info != null)
|
||||||
|
return Json(info, JsonRequestBehavior.AllowGet);
|
||||||
|
|
||||||
|
return Json(new NotificationResult
|
||||||
|
{
|
||||||
|
Title = "Auto-Configure Failed",
|
||||||
|
Text = "Please enter your SAB Settings Manually",
|
||||||
|
NotificationType = NotificationType.Error
|
||||||
|
}, JsonRequestBehavior.AllowGet);
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|
Loading…
Reference in a new issue