From 1536e900533a20b525fcd5110a349faed04203db Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 7 Feb 2024 00:35:35 +0200 Subject: [PATCH] New: Artist info in Album Delete event for Webhooks Fixes #4552 --- .../Notifications/Webhook/WebhookAlbumDeletePayload.cs | 1 + src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookAlbumDeletePayload.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookAlbumDeletePayload.cs index a3d98bc1a..405776a6e 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookAlbumDeletePayload.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookAlbumDeletePayload.cs @@ -2,6 +2,7 @@ namespace NzbDrone.Core.Notifications.Webhook { public class WebhookAlbumDeletePayload : WebhookPayload { + public WebhookArtist Artist { get; set; } public WebhookAlbum Album { get; set; } public bool DeletedFiles { get; set; } } diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs index 9504a87a8..9c84efb3e 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs @@ -160,6 +160,7 @@ namespace NzbDrone.Core.Notifications.Webhook EventType = WebhookEventType.AlbumDelete, InstanceName = _configFileProvider.InstanceName, ApplicationUrl = _configService.ApplicationUrl, + Artist = new WebhookArtist(deleteMessage.Album.Artist), Album = new WebhookAlbum(deleteMessage.Album), DeletedFiles = deleteMessage.DeletedFiles };