mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Prefer profile over codec for display title
FFmpeg 6.1 and newer can recognize Dolby Atmos and DTS:X. This change makes it possible to see if a track has one of these technologies if the used FFmpeg supports it.
This commit is contained in:
parent
03c23e15b3
commit
69ae006f37
@ -267,14 +267,14 @@ namespace MediaBrowser.Model.Entities
|
|||||||
attributes.Add(StringHelper.FirstToUpper(fullLanguage ?? Language));
|
attributes.Add(StringHelper.FirstToUpper(fullLanguage ?? Language));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(Codec) && !string.Equals(Codec, "dca", StringComparison.OrdinalIgnoreCase) && !string.Equals(Codec, "dts", StringComparison.OrdinalIgnoreCase))
|
if (!string.IsNullOrEmpty(Profile) && !string.Equals(Profile, "lc", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
|
||||||
attributes.Add(AudioCodec.GetFriendlyName(Codec));
|
|
||||||
}
|
|
||||||
else if (!string.IsNullOrEmpty(Profile) && !string.Equals(Profile, "lc", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
{
|
||||||
attributes.Add(Profile);
|
attributes.Add(Profile);
|
||||||
}
|
}
|
||||||
|
else if (!string.IsNullOrEmpty(Codec))
|
||||||
|
{
|
||||||
|
attributes.Add(AudioCodec.GetFriendlyName(Codec));
|
||||||
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(ChannelLayout))
|
if (!string.IsNullOrEmpty(ChannelLayout))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user