aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities
diff options
context:
space:
mode:
authorMike <Vagab0nd@users.noreply.github.com>2021-09-01 18:59:59 +0200
committerGitHub <noreply@github.com>2021-09-01 18:59:59 +0200
commitcf9c678406b3f412d70637da35ccb0e9f70c3a00 (patch)
tree1682016fed6cf12acfb9d6f7ab84c4676ce73439 /MediaBrowser.Model/Entities
parent855f9c4a8eca8ac7221e51910d2a8371990e9e8b (diff)
Add subtitle format(codec) to stream display title (#5853)
Co-authored-by: MichaƂ Kurek <michal.kurek@mail.com>
Diffstat (limited to 'MediaBrowser.Model/Entities')
-rw-r--r--MediaBrowser.Model/Entities/MediaStream.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs
index 9653a8ece..8955012d7 100644
--- a/MediaBrowser.Model/Entities/MediaStream.cs
+++ b/MediaBrowser.Model/Entities/MediaStream.cs
@@ -255,6 +255,11 @@ namespace MediaBrowser.Model.Entities
attributes.Add(string.IsNullOrEmpty(LocalizedForced) ? "Forced" : LocalizedForced);
}
+ if (!string.IsNullOrEmpty(Codec))
+ {
+ attributes.Add(Codec.ToUpperInvariant());
+ }
+
if (!string.IsNullOrEmpty(Title))
{
var result = new StringBuilder(Title);