Ignore JSON serialization for special features of movie.

When refreshing the metadata of the video with a local trailer, the server gets
stuck trying to read the database and save the item at the same time.
This commit is contained in:
Dmitry Lyzo 2022-01-14 22:10:18 +03:00
parent 07e9568de8
commit f28384ba30

View file

@ -20,6 +20,7 @@ namespace MediaBrowser.Controller.Entities.Movies
public class Movie : Video, IHasSpecialFeatures, IHasTrailers, IHasLookupInfo<MovieInfo>, ISupportsBoxSetGrouping
{
/// <inheritdoc />
[JsonIgnore]
public IReadOnlyList<Guid> SpecialFeatureIds => GetExtras()
.Where(extra => extra.ExtraType != null && extra is Video)
.Select(extra => extra.Id)