1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 18:02:44 +01:00

Fixed: Sending Webhook on upgrade if media info is unavailable

Fixes #7838

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick 2022-12-05 21:31:39 -06:00
parent 9d9065fbcd
commit 2a1f57c085

View File

@ -21,7 +21,11 @@ public WebhookMovieFile(MovieFile movieFile)
IndexerFlags = movieFile.IndexerFlags.ToString(); IndexerFlags = movieFile.IndexerFlags.ToString();
Size = movieFile.Size; Size = movieFile.Size;
DateAdded = movieFile.DateAdded; DateAdded = movieFile.DateAdded;
MediaInfo = new WebhookMovieFileMediaInfo(movieFile);
if (movieFile.MediaInfo != null)
{
MediaInfo = new WebhookMovieFileMediaInfo(movieFile);
}
} }
public int Id { get; set; } public int Id { get; set; }