mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
update generated titles for subtitles
This commit is contained in:
parent
c3baf28246
commit
29d4305732
@ -75,15 +75,12 @@ namespace MediaBrowser.Model.Entities
|
|||||||
{
|
{
|
||||||
attributes.Add(StringHelper.ToStringCultureInvariant(Channels.Value) + " ch");
|
attributes.Add(StringHelper.ToStringCultureInvariant(Channels.Value) + " ch");
|
||||||
}
|
}
|
||||||
|
|
||||||
string name = string.Join(" ", attributes.ToArray());
|
|
||||||
|
|
||||||
if (IsDefault)
|
if (IsDefault)
|
||||||
{
|
{
|
||||||
name += " (D)";
|
attributes.Add("Default");
|
||||||
}
|
}
|
||||||
|
|
||||||
return name;
|
return string.Join(" ", attributes.ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Type == MediaStreamType.Subtitle)
|
if (Type == MediaStreamType.Subtitle)
|
||||||
@ -94,27 +91,17 @@ namespace MediaBrowser.Model.Entities
|
|||||||
{
|
{
|
||||||
attributes.Add(StringHelper.FirstToUpper(Language));
|
attributes.Add(StringHelper.FirstToUpper(Language));
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(Codec))
|
|
||||||
{
|
|
||||||
attributes.Add(Codec);
|
|
||||||
}
|
|
||||||
|
|
||||||
string name = string.Join(" ", attributes.ToArray());
|
|
||||||
|
|
||||||
if (IsDefault)
|
if (IsDefault)
|
||||||
{
|
{
|
||||||
name += " (D)";
|
attributes.Add("Default");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsForced)
|
if (IsForced)
|
||||||
{
|
{
|
||||||
name += " (F)";
|
attributes.Add("Forced");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsExternal)
|
string name = string.Join(" ", attributes.ToArray());
|
||||||
{
|
|
||||||
name += " (EXT)";
|
|
||||||
}
|
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user