Finishing up Prowl integration.
This commit is contained in:
parent
eb6b5a6b0e
commit
24a2c2be59
|
@ -125,8 +125,8 @@
|
||||||
<virtualDirectory path="/" physicalPath="%NZBDRONE_PATH%\NZBDrone.Web" />
|
<virtualDirectory path="/" physicalPath="%NZBDRONE_PATH%\NZBDrone.Web" />
|
||||||
</application>
|
</application>
|
||||||
<bindings>
|
<bindings>
|
||||||
<binding protocol="http" bindingInformation="*:12345:localhost" />
|
<binding protocol="http" bindingInformation="*:8989:localhost" />
|
||||||
<binding protocol="http" bindingInformation="*:12345:" />
|
<binding protocol="http" bindingInformation="*:8989:" />
|
||||||
</bindings>
|
</bindings>
|
||||||
</site>
|
</site>
|
||||||
<applicationDefaults applicationPool="IISExpressAppPool" />
|
<applicationDefaults applicationPool="IISExpressAppPool" />
|
||||||
|
|
|
@ -107,6 +107,7 @@ namespace NzbDrone.Core
|
||||||
_kernel.Bind<ExternalNotificationBase>().To<Smtp>();
|
_kernel.Bind<ExternalNotificationBase>().To<Smtp>();
|
||||||
_kernel.Bind<ExternalNotificationBase>().To<Twitter>();
|
_kernel.Bind<ExternalNotificationBase>().To<Twitter>();
|
||||||
_kernel.Bind<ExternalNotificationBase>().To<Providers.ExternalNotification.Growl>();
|
_kernel.Bind<ExternalNotificationBase>().To<Providers.ExternalNotification.Growl>();
|
||||||
|
_kernel.Bind<ExternalNotificationBase>().To<Prowl>();
|
||||||
|
|
||||||
var notifiers = _kernel.GetAll<ExternalNotificationBase>();
|
var notifiers = _kernel.GetAll<ExternalNotificationBase>();
|
||||||
_kernel.Get<ExternalNotificationProvider>().InitializeNotifiers(notifiers.ToList());
|
_kernel.Get<ExternalNotificationProvider>().InitializeNotifiers(notifiers.ToList());
|
||||||
|
|
|
@ -490,6 +490,16 @@ namespace NzbDrone.Web.Controllers
|
||||||
_configProvider.GrowlHost = data.GrowlHost;
|
_configProvider.GrowlHost = data.GrowlHost;
|
||||||
_configProvider.GrowlPassword = data.GrowlPassword;
|
_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();
|
return GetSuccessResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -125,12 +125,16 @@ namespace NzbDrone.Web.Models
|
||||||
[Description("Send notification when episode is downloaded?")]
|
[Description("Send notification when episode is downloaded?")]
|
||||||
public bool GrowlNotifyOnDownload { get; set; }
|
public bool GrowlNotifyOnDownload { get; set; }
|
||||||
|
|
||||||
|
[DataType(DataType.Text)]
|
||||||
[DisplayName("Host running Growl")]
|
[DisplayName("Host running Growl")]
|
||||||
[Description("Host or IP Address:Port")]
|
[Description("Host or IP Address:Port")]
|
||||||
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||||
public string GrowlHost { get; set; }
|
public string GrowlHost { get; set; }
|
||||||
|
|
||||||
|
[DataType(DataType.Text)]
|
||||||
[DisplayName("Growl host Password")]
|
[DisplayName("Growl host Password")]
|
||||||
[Description("Password is required if Growl is running on another system")]
|
[Description("Password is required if Growl is running on another system")]
|
||||||
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||||
public string GrowlPassword { get; set; }
|
public string GrowlPassword { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
@ -147,12 +151,16 @@ namespace NzbDrone.Web.Models
|
||||||
[Description("Send notification when episode is downloaded?")]
|
[Description("Send notification when episode is downloaded?")]
|
||||||
public bool ProwlNotifyOnDownload { get; set; }
|
public bool ProwlNotifyOnDownload { get; set; }
|
||||||
|
|
||||||
|
[DataType(DataType.Text)]
|
||||||
[DisplayName("API Keys")]
|
[DisplayName("API Keys")]
|
||||||
[Description("Comma-Separated list of API Keys")]
|
[Description("Comma-Separated list of API Keys")]
|
||||||
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||||
public string ProwlApiKeys { get; set; }
|
public string ProwlApiKeys { get; set; }
|
||||||
|
|
||||||
|
[DataType(DataType.Text)]
|
||||||
[DisplayName("Priority")]
|
[DisplayName("Priority")]
|
||||||
[Description("Priority to send alerts to Prowl with")]
|
[Description("Priority to send alerts to Prowl with")]
|
||||||
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||||
public int ProwlPriority { get; set; }
|
public int ProwlPriority { get; set; }
|
||||||
|
|
||||||
public SelectList ProwlPrioritySelectList { get; set; }
|
public SelectList ProwlPrioritySelectList { get; set; }
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<li><a href="#tabs-smtp">SMTP</a></li>
|
<li><a href="#tabs-smtp">SMTP</a></li>
|
||||||
<li><a href="#tabs-twitter">Twitter</a></li>
|
<li><a href="#tabs-twitter">Twitter</a></li>
|
||||||
<li><a href="#tabs-growl">Growl</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>
|
</ul>
|
||||||
<div id="tabs-xbmc">
|
<div id="tabs-xbmc">
|
||||||
@{Html.RenderPartial("Xbmc", Model);}
|
@{Html.RenderPartial("Xbmc", Model);}
|
||||||
|
|
Loading…
Reference in New Issue