Просмотр исходного кода

Don't include new internal MediaStream properties in api spec (#12288)

Cody Robibero 1 год назад
Родитель
Сommit
042d3e3f93
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      MediaBrowser.Model/Entities/MediaStream.cs

+ 3 - 0
MediaBrowser.Model/Entities/MediaStream.cs

@@ -7,6 +7,7 @@ using System.ComponentModel;
 using System.Globalization;
 using System.Linq;
 using System.Text;
+using System.Text.Json.Serialization;
 using Jellyfin.Data.Enums;
 using Jellyfin.Extensions;
 using MediaBrowser.Model.Dlna;
@@ -585,6 +586,7 @@ namespace MediaBrowser.Model.Entities
             }
         }
 
+        [JsonIgnore]
         public bool IsPgsSubtitleStream
         {
             get
@@ -608,6 +610,7 @@ namespace MediaBrowser.Model.Entities
         /// All text-based and pgs subtitles can be extracted.
         /// </summary>
         /// <value><c>true</c> if this is a extractable subtitle steam otherwise, <c>false</c>.</value>
+        [JsonIgnore]
         public bool IsExtractableSubtitleStream => IsTextSubtitleStream || IsPgsSubtitleStream;
 
         /// <summary>