瀏覽代碼

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.
Dmitry Lyzo 3 年之前
父節點
當前提交
f28384ba30
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      MediaBrowser.Controller/Entities/Movies/Movie.cs

+ 1 - 0
MediaBrowser.Controller/Entities/Movies/Movie.cs

@@ -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)