mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
leftover notification code
This commit is contained in:
parent
5ab07d7028
commit
1e9ae9a508
6 changed files with 16 additions and 13 deletions
|
@ -123,12 +123,12 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
_seriesProvider.AddSeries(path, series.Id, qualityProfileId);
|
||||
ScanNewSeries();
|
||||
return new JsonResult { Data = "ok" };
|
||||
return Json(new NotificationResult() { Title = seriesName, Text = "Was added successfully" });
|
||||
}
|
||||
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new JsonResult { Data = "failed" };
|
||||
return Json(new NotificationResult() { Title = "Failed", Text = ex.Message, NotificationType = NotificationType.Error});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue