Update slack for movies.

pull/435/head
vertigo235 8 years ago
parent 1112616514
commit 290c4e1f2e

@ -37,7 +37,7 @@ namespace NzbDrone.Core.Notifications.Slack
new Attachment new Attachment
{ {
Fallback = message.Message, Fallback = message.Message,
Title = message.Series.Title, Title = message.Movie.Title,
Text = message.Message, Text = message.Message,
Color = "warning" Color = "warning"
} }
@ -59,7 +59,7 @@ namespace NzbDrone.Core.Notifications.Slack
new Attachment new Attachment
{ {
Fallback = message.Message, Fallback = message.Message,
Title = message.Series.Title, Title = message.Movie.Title,
Text = message.Message, Text = message.Message,
Color = "good" Color = "good"
} }
@ -71,6 +71,21 @@ namespace NzbDrone.Core.Notifications.Slack
public override void OnMovieRename(Movie movie) public override void OnMovieRename(Movie movie)
{ {
var payload = new SlackPayload
{
IconEmoji = Settings.Icon,
Username = Settings.Username,
Text = "Renamed",
Attachments = new List<Attachment>
{
new Attachment
{
Title = movie.Title,
}
}
};
NotifySlack(payload);
} }
public override void OnRename(Series series) public override void OnRename(Series series)

Loading…
Cancel
Save