From e77be24c7bc3838792c7a23c95774cbc713aed10 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 5 Dec 2022 01:10:54 -0800 Subject: [PATCH] Fixed: Sending Webhook on upgrade if media info is unavailable Closes #5272 --- .../Notifications/Webhook/WebhookEpisodeFile.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs index 84406e8a6..9f392a33b 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs @@ -20,7 +20,11 @@ namespace NzbDrone.Core.Notifications.Webhook SceneName = episodeFile.SceneName; Size = episodeFile.Size; DateAdded = episodeFile.DateAdded; - MediaInfo = new WebhookEpisodeFileMediaInfo(episodeFile); + + if (episodeFile.MediaInfo != null) + { + MediaInfo = new WebhookEpisodeFileMediaInfo(episodeFile); + } } public int Id { get; set; }