diff --git a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs index ac8faa2a5..1812b9f72 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.IO; using System.Linq; using FluentValidation.Results; using NzbDrone.Common.Extensions; @@ -51,6 +52,15 @@ namespace NzbDrone.Core.Notifications.Webhook DownloadId = message.DownloadId }; + if (message.OldMovieFiles.Any()) + { + payload.DeletedFiles = message.OldMovieFiles.ConvertAll(x => + new WebhookMovieFile(x) + { + Path = Path.Combine(message.Movie.Path, x.RelativePath) + }); + } + _proxy.SendWebhook(payload, Settings); } diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookImportPayload.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookImportPayload.cs index 6037b660c..e44a4564b 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookImportPayload.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookImportPayload.cs @@ -1,3 +1,5 @@ +using System.Collections.Generic; + namespace NzbDrone.Core.Notifications.Webhook { public class WebhookImportPayload : WebhookPayload @@ -7,5 +9,6 @@ namespace NzbDrone.Core.Notifications.Webhook public bool IsUpgrade { get; set; } public string DownloadClient { get; set; } public string DownloadId { get; set; } + public List DeletedFiles { get; set; } } }