From b815d27a104cd6e2bc1601fa18a89f62241cfbd4 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 12 Feb 2021 17:01:31 -0800 Subject: [PATCH] New: Include episode file with episode file deleted events Closes #4282 --- src/NzbDrone.Core/Notifications/Webhook/Webhook.cs | 1 + .../Notifications/Webhook/WebhookEpisodeDeletePayload.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs index 352d37599..2bf98c26d 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs @@ -83,6 +83,7 @@ namespace NzbDrone.Core.Notifications.Webhook EventType = WebhookEventType.EpisodeFileDelete, Series = new WebhookSeries(deleteMessage.Series), Episodes = deleteMessage.EpisodeFile.Episodes.Value.ConvertAll(x => new WebhookEpisode(x)), + EpisodeFile = deleteMessage.EpisodeFile, DeleteReason = deleteMessage.Reason }; diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeDeletePayload.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeDeletePayload.cs index acc8b7824..d12d8b1dc 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeDeletePayload.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeDeletePayload.cs @@ -7,6 +7,7 @@ namespace NzbDrone.Core.Notifications.Webhook { public WebhookSeries Series { get; set; } public List Episodes { get; set; } + public EpisodeFile EpisodeFile { get; set; } public DeleteMediaFileReason DeleteReason { get; set; } } }