From 290c4e1f2e4510e6ed99f9f23377b70280460d0f Mon Sep 17 00:00:00 2001 From: vertigo235 Date: Tue, 24 Jan 2017 17:56:10 -0500 Subject: [PATCH] Update slack for movies. --- .../Notifications/Slack/Slack.cs | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Slack/Slack.cs b/src/NzbDrone.Core/Notifications/Slack/Slack.cs index d2038aea1..03b74c27f 100644 --- a/src/NzbDrone.Core/Notifications/Slack/Slack.cs +++ b/src/NzbDrone.Core/Notifications/Slack/Slack.cs @@ -37,7 +37,7 @@ namespace NzbDrone.Core.Notifications.Slack new Attachment { Fallback = message.Message, - Title = message.Series.Title, + Title = message.Movie.Title, Text = message.Message, Color = "warning" } @@ -59,7 +59,7 @@ namespace NzbDrone.Core.Notifications.Slack new Attachment { Fallback = message.Message, - Title = message.Series.Title, + Title = message.Movie.Title, Text = message.Message, Color = "good" } @@ -71,8 +71,23 @@ namespace NzbDrone.Core.Notifications.Slack public override void OnMovieRename(Movie movie) { - } - + var payload = new SlackPayload + { + IconEmoji = Settings.Icon, + Username = Settings.Username, + Text = "Renamed", + Attachments = new List + { + new Attachment + { + Title = movie.Title, + } + } + }; + + NotifySlack(payload); + } + public override void OnRename(Series series) { var payload = new SlackPayload