mirror of https://github.com/Sonarr/Sonarr
Fixed: Sending Webhook on upgrade if media info is unavailable
Closes #5272
This commit is contained in:
parent
b98ce7fb17
commit
e77be24c7b
|
@ -20,8 +20,12 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|||
SceneName = episodeFile.SceneName;
|
||||
Size = episodeFile.Size;
|
||||
DateAdded = episodeFile.DateAdded;
|
||||
|
||||
if (episodeFile.MediaInfo != null)
|
||||
{
|
||||
MediaInfo = new WebhookEpisodeFileMediaInfo(episodeFile);
|
||||
}
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
public string RelativePath { get; set; }
|
||||
|
|
Loading…
Reference in New Issue