Fixed: Update Growl Notifications

pull/305/head
Qstick 7 years ago
parent 2b2c242c6f
commit c3800c66ad

@ -25,12 +25,12 @@ namespace NzbDrone.Core.Notifications.Growl
public override void OnDownload(TrackDownloadMessage message) public override void OnDownload(TrackDownloadMessage message)
{ {
_growlService.SendNotification(TRACK_DOWNLOADED_TITLE, message.Message, "DOWNLOAD", Settings.Host, Settings.Port, Settings.Password); _growlService.SendNotification(TRACK_DOWNLOADED_TITLE, message.Message, "TRACKDOWNLOAD", Settings.Host, Settings.Port, Settings.Password);
} }
public override void OnAlbumDownload(AlbumDownloadMessage message) public override void OnAlbumDownload(AlbumDownloadMessage message)
{ {
_growlService.SendNotification(ALBUM_DOWNLOADED_TITLE, message.Message, "DOWNLOAD", Settings.Host, Settings.Port, Settings.Password); _growlService.SendNotification(ALBUM_DOWNLOADED_TITLE, message.Message, "ALBUMDOWNLOAD", Settings.Host, Settings.Port, Settings.Password);
} }
public override ValidationResult Test() public override ValidationResult Test()

@ -1,4 +1,4 @@
using FluentValidation.Results; using FluentValidation.Results;
using Growl.Connector; using Growl.Connector;
using Growl.CoreLibrary; using Growl.CoreLibrary;
using NzbDrone.Common.Extensions; using NzbDrone.Common.Extensions;
@ -21,8 +21,7 @@ namespace NzbDrone.Core.Notifications.Growl
{ {
private readonly Logger _logger; private readonly Logger _logger;
//TODO: Change this to Lidarr, but it is a breaking change (v3) private readonly Application _growlApplication = new Application("Lidarr");
private readonly Application _growlApplication = new Application("NzbDrone");
private readonly NotificationType[] _notificationTypes; private readonly NotificationType[] _notificationTypes;
private class GrowlRequestState private class GrowlRequestState
@ -133,8 +132,9 @@ namespace NzbDrone.Core.Notifications.Growl
{ {
var notificationTypes = new List<NotificationType>(); var notificationTypes = new List<NotificationType>();
notificationTypes.Add(new NotificationType("TEST", "Test")); notificationTypes.Add(new NotificationType("TEST", "Test"));
notificationTypes.Add(new NotificationType("GRAB", "Episode Grabbed")); notificationTypes.Add(new NotificationType("GRAB", "Album Grabbed"));
notificationTypes.Add(new NotificationType("DOWNLOAD", "Episode Complete")); notificationTypes.Add(new NotificationType("TRACKDOWNLOAD", "Track Complete"));
notificationTypes.Add(new NotificationType("ALBUMDOWNLOAD", "Album Complete"));
return notificationTypes.ToArray(); return notificationTypes.ToArray();
} }

Loading…
Cancel
Save