From a824fa44d21328d9c8bbb1ccfd6d247d4ff5c888 Mon Sep 17 00:00:00 2001 From: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com> Date: Fri, 23 Apr 2021 15:54:15 +0100 Subject: [PATCH] Add missing On Delete Notifications to Mailgun notifications --- src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs index 06ffdb267..2c865654b 100644 --- a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs +++ b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs @@ -29,6 +29,20 @@ namespace NzbDrone.Core.Notifications.Mailgun _proxy.SendNotification(EPISODE_DOWNLOADED_TITLE, downloadMessage.Message, Settings); } + public override void OnEpisodeFileDelete(EpisodeDeleteMessage deleteMessage) + { + var body = $"{deleteMessage.Message} deleted."; + + _proxy.SendNotification(EPISODE_DELETED_TITLE, body, Settings); + } + + public override void OnSeriesDelete(SeriesDeleteMessage deleteMessage) + { + var body = $"{deleteMessage.Message}"; + + _proxy.SendNotification(SERIES_DELETED_TITLE, body, Settings); + } + public override void OnHealthIssue(HealthCheck.HealthCheck healthCheckMessage) { _proxy.SendNotification(HEALTH_ISSUE_TITLE, healthCheckMessage.Message, Settings);