Fixed: Return properly formatted episode file for deleted files Webhook

This commit is contained in:
Michael Peleshenko 2023-04-16 20:48:59 -04:00 committed by GitHub
parent 5a04602672
commit 2303bff205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ namespace NzbDrone.Core.Notifications.Webhook
ApplicationUrl = _configService.ApplicationUrl, ApplicationUrl = _configService.ApplicationUrl,
Series = new WebhookSeries(deleteMessage.Series), Series = new WebhookSeries(deleteMessage.Series),
Episodes = deleteMessage.EpisodeFile.Episodes.Value.ConvertAll(x => new WebhookEpisode(x)), Episodes = deleteMessage.EpisodeFile.Episodes.Value.ConvertAll(x => new WebhookEpisode(x)),
EpisodeFile = deleteMessage.EpisodeFile, EpisodeFile = new WebhookEpisodeFile(deleteMessage.EpisodeFile),
DeleteReason = deleteMessage.Reason DeleteReason = deleteMessage.Reason
}; };
} }

View File

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