From cc5b5463f225604a29820e026a43d7dc33f0ffa5 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 14 May 2024 00:48:01 +0300 Subject: [PATCH] Ignore `Grabbed` with STJson --- src/Sonarr.Api.V3/Episodes/EpisodeResource.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sonarr.Api.V3/Episodes/EpisodeResource.cs b/src/Sonarr.Api.V3/Episodes/EpisodeResource.cs index d89020b74..551d9bb69 100644 --- a/src/Sonarr.Api.V3/Episodes/EpisodeResource.cs +++ b/src/Sonarr.Api.V3/Episodes/EpisodeResource.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Newtonsoft.Json; +using System.Text.Json.Serialization; using NzbDrone.Core.MediaCover; using NzbDrone.Core.Tv; using Sonarr.Api.V3.EpisodeFiles; @@ -39,7 +39,7 @@ namespace Sonarr.Api.V3.Episodes public List Images { get; set; } // Hiding this so people don't think its usable (only used to set the initial state) - [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] public bool Grabbed { get; set; } }