mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-03-05 13:20:20 -05:00
Fixed: Sending Webhook on upgrade if media info is unavailable
Closes #5272
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user