From 38c9534eacb26bfb077f974dfd24e38879a4e8f8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 23 Jan 2022 16:22:38 -0600 Subject: [PATCH] Fixed: Webhook fails due to Frames/Analysis property serialization on MediaInfo --- src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoModel.cs | 7 ------- .../Notifications/Notifiarr/NotifiarrProxy.cs | 4 +--- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoModel.cs b/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoModel.cs index 723cbdcf3..a3eea2b1f 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoModel.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoModel.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Text.Json.Serialization; using FFMpegCore; using NzbDrone.Core.Datastore; @@ -12,12 +11,6 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo public string RawFrameData { get; set; } public int SchemaRevision { get; set; } - [JsonIgnore] - public IMediaAnalysis Analysis => FFProbe.Analyse(RawStreamData); - - [JsonIgnore] - public IMediaAnalysis Frames => FFProbe.Analyse(RawFrameData); - public string ContainerFormat { get; set; } public string VideoFormat { get; set; } diff --git a/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs b/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs index 71a7c44e9..2f7468b4f 100644 --- a/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs +++ b/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs @@ -1,10 +1,8 @@ -using System; -using System.Collections.Generic; +using System; using System.Collections.Specialized; using System.Net; using FluentValidation.Results; using NLog; -using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Http; namespace NzbDrone.Core.Notifications.Notifiarr