Add subtitle format(codec) to stream display title (#5853)

Co-authored-by: Michał Kurek <michal.kurek@mail.com>
This commit is contained in:
Mike
2021-09-01 18:59:59 +02:00
committed by GitHub
parent 855f9c4a8e
commit cf9c678406
2 changed files with 85 additions and 0 deletions

View File

@@ -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);