Ignore `Grabbed` with STJson

This commit is contained in:
Bogdan 2024-05-14 00:48:01 +03:00 committed by Mark McDowall
parent 9b4ff657af
commit cc5b5463f2
1 changed files with 2 additions and 2 deletions

View File

@ -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<MediaCover> 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; }
}