1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-21 06:39:06 +00:00

Fixed: Sending Webhook on upgrade if media info is unavailable

Closes #5272
This commit is contained in:
Mark McDowall 2022-12-05 01:10:54 -08:00
parent b98ce7fb17
commit e77be24c7b

View file

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