diff options
| author | Cody Robibero <cody@robibe.ro> | 2024-07-16 12:57:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-16 12:57:02 -0400 |
| commit | 042d3e3f931d1ff9b476201a5a239f94e1d43162 (patch) | |
| tree | b0f448a56c296fbc58dc5950155b5e728c5eab4f /MediaBrowser.Model/Entities | |
| parent | f1f97186ba1403a83671a9549f8d5bed22ab6b56 (diff) | |
Don't include new internal MediaStream properties in api spec (#12288)
Diffstat (limited to 'MediaBrowser.Model/Entities')
| -rw-r--r-- | MediaBrowser.Model/Entities/MediaStream.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index 9044c0524..dcb3febbd 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/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> |
