diff options
| author | Mike <Vagab0nd@users.noreply.github.com> | 2021-09-01 18:59:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-01 18:59:59 +0200 |
| commit | cf9c678406b3f412d70637da35ccb0e9f70c3a00 (patch) | |
| tree | 1682016fed6cf12acfb9d6f7ab84c4676ce73439 /MediaBrowser.Model/Entities | |
| parent | 855f9c4a8eca8ac7221e51910d2a8371990e9e8b (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.cs | 5 |
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); |
