|
|
@ -1,4 +1,5 @@
|
|
|
|
using System.Web.Mvc;
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
|
|
|
using NLog;
|
|
|
|
using NzbDrone.Core.Jobs;
|
|
|
|
using NzbDrone.Core.Jobs;
|
|
|
|
using NzbDrone.Core.Providers;
|
|
|
|
using NzbDrone.Core.Providers;
|
|
|
|
using NzbDrone.Core.Providers.DownloadClients;
|
|
|
|
using NzbDrone.Core.Providers.DownloadClients;
|
|
|
@ -21,6 +22,8 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
private readonly XbmcProvider _xbmcProvider;
|
|
|
|
private readonly XbmcProvider _xbmcProvider;
|
|
|
|
private readonly PlexProvider _plexProvider;
|
|
|
|
private readonly PlexProvider _plexProvider;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
|
|
|
|
|
|
public CommandController(JobProvider jobProvider, SabProvider sabProvider,
|
|
|
|
public CommandController(JobProvider jobProvider, SabProvider sabProvider,
|
|
|
|
SmtpProvider smtpProvider, TwitterProvider twitterProvider,
|
|
|
|
SmtpProvider smtpProvider, TwitterProvider twitterProvider,
|
|
|
|
EpisodeProvider episodeProvider, GrowlProvider growlProvider,
|
|
|
|
EpisodeProvider episodeProvider, GrowlProvider growlProvider,
|
|
|
@ -133,6 +136,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
logger.TraceException(ex.Message, ex);
|
|
|
|
return JsonNotificationResult.Oops("Couldn't register and test Growl");
|
|
|
|
return JsonNotificationResult.Oops("Couldn't register and test Growl");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|