mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
New: Include episode file with episode file deleted events
Closes #4282
This commit is contained in:
parent
ec698c2cf7
commit
b815d27a10
@ -83,6 +83,7 @@ public override void OnEpisodeFileDelete(EpisodeDeleteMessage deleteMessage)
|
||||
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 @@ public class WebhookEpisodeDeletePayload : WebhookPayload
|
||||
{
|
||||
public WebhookSeries Series { get; set; }
|
||||
public List<WebhookEpisode> Episodes { get; set; }
|
||||
public EpisodeFile EpisodeFile { get; set; }
|
||||
public DeleteMediaFileReason DeleteReason { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user