New: Artist info in Album Delete event for Webhooks

Fixes #4552
pull/4557/head
Bogdan 11 months ago
parent c744231141
commit 1536e90053

@ -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; }
}

@ -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
};

Loading…
Cancel
Save