New: Include episode file with episode file deleted events

Closes #4282
This commit is contained in:
Mark McDowall 2021-02-12 17:01:31 -08:00
parent ec698c2cf7
commit b815d27a10
2 changed files with 2 additions and 0 deletions

View File

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

View File

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