New: Include episode file with episode file deleted events

Closes #4282
pull/4326/head
Mark McDowall 4 years ago
parent ec698c2cf7
commit b815d27a10

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

@ -7,6 +7,7 @@ namespace NzbDrone.Core.Notifications.Webhook
{
public WebhookSeries Series { get; set; }
public List<WebhookEpisode> Episodes { get; set; }
public EpisodeFile EpisodeFile { get; set; }
public DeleteMediaFileReason DeleteReason { get; set; }
}
}

Loading…
Cancel
Save