From 2303bff2055d96e49b5a934b8482a1424eb70ae0 Mon Sep 17 00:00:00 2001 From: Michael Peleshenko Date: Sun, 16 Apr 2023 20:48:59 -0400 Subject: [PATCH] Fixed: Return properly formatted episode file for deleted files Webhook --- src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs | 2 +- .../Notifications/Webhook/WebhookEpisodeDeletePayload.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs index 785eff790..af5ae2a5e 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs @@ -80,7 +80,7 @@ namespace NzbDrone.Core.Notifications.Webhook ApplicationUrl = _configService.ApplicationUrl, Series = new WebhookSeries(deleteMessage.Series), Episodes = deleteMessage.EpisodeFile.Episodes.Value.ConvertAll(x => new WebhookEpisode(x)), - EpisodeFile = deleteMessage.EpisodeFile, + EpisodeFile = new WebhookEpisodeFile(deleteMessage.EpisodeFile), DeleteReason = deleteMessage.Reason }; } diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeDeletePayload.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeDeletePayload.cs index efc1ab3af..4fde5a887 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeDeletePayload.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeDeletePayload.cs @@ -7,7 +7,7 @@ namespace NzbDrone.Core.Notifications.Webhook { public WebhookSeries Series { get; set; } public List Episodes { get; set; } - public EpisodeFile EpisodeFile { get; set; } + public WebhookEpisodeFile EpisodeFile { get; set; } public DeleteMediaFileReason DeleteReason { get; set; } } }