|
|
@ -118,6 +118,9 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
[HttpPost]
|
|
|
|
[HttpPost]
|
|
|
|
public JsonResult AddExistingSeries(string path, string seriesName, int seriesId, int qualityProfileId)
|
|
|
|
public JsonResult AddExistingSeries(string path, string seriesName, int seriesId, int qualityProfileId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (seriesId == 0 || String.IsNullOrWhiteSpace(seriesName))
|
|
|
|
|
|
|
|
return Json(new NotificationResult() { Title = "Failed", Text = "Invalid Series Information, Series not added.", NotificationType = NotificationType.Error });
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_seriesProvider.AddSeries(path, seriesId, qualityProfileId);
|
|
|
|
_seriesProvider.AddSeries(path, seriesId, qualityProfileId);
|
|
|
|