Fixed: Return properly formatted episode file for deleted files Webhook

pull/5564/head
Michael Peleshenko 2 years ago committed by GitHub
parent 5a04602672
commit 2303bff205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save