diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-03-11 07:48:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-11 07:48:23 -0700 |
| commit | 28223704f3c1c38c5a4acc65b38e2e8a1a06ea3d (patch) | |
| tree | 41b4e106e4b74ef6a3b65742cef551c3e0ef7183 /MediaBrowser.Model/Entities | |
| parent | 3342c29f4f4f0fa64da319090fa6f42baeba9df0 (diff) | |
| parent | f671eeb6b271c5c2e153181ab29a3a4ab0195bff (diff) | |
Merge pull request #7441 from 1337joe/add-external-stream-indicator
Add label for external audio/sub tracks
Diffstat (limited to 'MediaBrowser.Model/Entities')
| -rw-r--r-- | MediaBrowser.Model/Entities/MediaStream.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index e2616d92a..4742d21e9 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -140,6 +140,8 @@ namespace MediaBrowser.Model.Entities public string LocalizedForced { get; set; } + public string LocalizedExternal { get; set; } + public string DisplayTitle { get @@ -184,6 +186,11 @@ namespace MediaBrowser.Model.Entities attributes.Add(string.IsNullOrEmpty(LocalizedDefault) ? "Default" : LocalizedDefault); } + if (IsExternal) + { + attributes.Add(string.IsNullOrEmpty(LocalizedExternal) ? "External" : LocalizedExternal); + } + if (!string.IsNullOrEmpty(Title)) { var result = new StringBuilder(Title); @@ -274,6 +281,11 @@ namespace MediaBrowser.Model.Entities attributes.Add(Codec.ToUpperInvariant()); } + if (IsExternal) + { + attributes.Add(string.IsNullOrEmpty(LocalizedExternal) ? "External" : LocalizedExternal); + } + if (!string.IsNullOrEmpty(Title)) { var result = new StringBuilder(Title); |
