aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2022-03-11 07:48:23 -0700
committerGitHub <noreply@github.com>2022-03-11 07:48:23 -0700
commit28223704f3c1c38c5a4acc65b38e2e8a1a06ea3d (patch)
tree41b4e106e4b74ef6a3b65742cef551c3e0ef7183 /MediaBrowser.Model/Entities
parent3342c29f4f4f0fa64da319090fa6f42baeba9df0 (diff)
parentf671eeb6b271c5c2e153181ab29a3a4ab0195bff (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.cs12
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);