Finishing up Prowl integration.

pull/4/head
Mark McDowall 13 years ago
parent eb6b5a6b0e
commit 24a2c2be59

@ -125,8 +125,8 @@
<virtualDirectory path="/" physicalPath="%NZBDRONE_PATH%\NZBDrone.Web" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:12345:localhost" />
<binding protocol="http" bindingInformation="*:12345:" />
<binding protocol="http" bindingInformation="*:8989:localhost" />
<binding protocol="http" bindingInformation="*:8989:" />
</bindings>
</site>
<applicationDefaults applicationPool="IISExpressAppPool" />

@ -107,6 +107,7 @@ namespace NzbDrone.Core
_kernel.Bind<ExternalNotificationBase>().To<Smtp>();
_kernel.Bind<ExternalNotificationBase>().To<Twitter>();
_kernel.Bind<ExternalNotificationBase>().To<Providers.ExternalNotification.Growl>();
_kernel.Bind<ExternalNotificationBase>().To<Prowl>();
var notifiers = _kernel.GetAll<ExternalNotificationBase>();
_kernel.Get<ExternalNotificationProvider>().InitializeNotifiers(notifiers.ToList());

@ -490,6 +490,16 @@ namespace NzbDrone.Web.Controllers
_configProvider.GrowlHost = data.GrowlHost;
_configProvider.GrowlPassword = data.GrowlPassword;
//Prowl
var prowlSettings = _externalNotificationProvider.GetSettings(typeof(Prowl));
prowlSettings.Enable = data.ProwlEnabled;
_externalNotificationProvider.SaveSettings(prowlSettings);
_configProvider.ProwlNotifyOnGrab = data.ProwlNotifyOnGrab;
_configProvider.ProwlNotifyOnDownload = data.ProwlNotifyOnDownload;
_configProvider.ProwlApiKeys = data.ProwlApiKeys;
_configProvider.ProwlPriority = data.ProwlPriority;
return GetSuccessResult();
}

@ -125,12 +125,16 @@ namespace NzbDrone.Web.Models
[Description("Send notification when episode is downloaded?")]
public bool GrowlNotifyOnDownload { get; set; }
[DataType(DataType.Text)]
[DisplayName("Host running Growl")]
[Description("Host or IP Address:Port")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string GrowlHost { get; set; }
[DataType(DataType.Text)]
[DisplayName("Growl host Password")]
[Description("Password is required if Growl is running on another system")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string GrowlPassword { get; set; }
@ -147,12 +151,16 @@ namespace NzbDrone.Web.Models
[Description("Send notification when episode is downloaded?")]
public bool ProwlNotifyOnDownload { get; set; }
[DataType(DataType.Text)]
[DisplayName("API Keys")]
[Description("Comma-Separated list of API Keys")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string ProwlApiKeys { get; set; }
[DataType(DataType.Text)]
[DisplayName("Priority")]
[Description("Priority to send alerts to Prowl with")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public int ProwlPriority { get; set; }
public SelectList ProwlPrioritySelectList { get; set; }

@ -58,7 +58,7 @@
<li><a href="#tabs-smtp">SMTP</a></li>
<li><a href="#tabs-twitter">Twitter</a></li>
<li><a href="#tabs-growl">Growl</a></li>
<li><a href="#tabs-growl">Prowl</a></li>
<li><a href="#tabs-prowl">Prowl</a></li>
</ul>
<div id="tabs-xbmc">
@{Html.RenderPartial("Xbmc", Model);}

Loading…
Cancel
Save