mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 00:06:07 -07:00
Don't uppercase TrueHD
This commit is contained in:
parent
f77e061ff1
commit
ca093875b4
2 changed files with 5 additions and 3 deletions
|
@ -162,11 +162,11 @@ DOCUMENTATION :: END
|
||||||
% endif
|
% endif
|
||||||
% if data['media_type'] in ('movie', 'episode', 'clip', 'track'):
|
% if data['media_type'] in ('movie', 'episode', 'clip', 'track'):
|
||||||
% if data['audio_decision'] == 'transcode':
|
% if data['audio_decision'] == 'transcode':
|
||||||
Audio <strong>Transcode (${data['audio_codec'].upper()} ${data['audio_channel_layout']} → ${data['stream_audio_codec'].upper()} ${data['stream_audio_channel_layout']})</strong>
|
Audio <strong>Transcode (${plexpy.common.AUDIO_CODEC_OVERRIDES.get(data['audio_codec'], data['audio_codec'].upper())} ${data['audio_channel_layout']} → ${plexpy.common.AUDIO_CODEC_OVERRIDES.get(data['stream_audio_codec'], data['stream_audio_codec'].upper())} ${data['stream_audio_channel_layout']})</strong>
|
||||||
% elif data['audio_decision'] == 'copy':
|
% elif data['audio_decision'] == 'copy':
|
||||||
Audio <strong>Direct Stream (${data['stream_audio_codec'].upper()} ${data['stream_audio_channel_layout']})</strong>
|
Audio <strong>Direct Stream (${plexpy.common.AUDIO_CODEC_OVERRIDES.get(data['stream_audio_codec'], data['stream_audio_codec'].upper())} ${data['stream_audio_channel_layout']})</strong>
|
||||||
% else:
|
% else:
|
||||||
Audio <strong>Direct Play (${data['audio_codec'].upper()} ${data['audio_channel_layout']})</strong>
|
Audio <strong>Direct Play (${plexpy.common.AUDIO_CODEC_OVERRIDES.get(data['audio_codec'], data['audio_codec'].upper())} ${data['audio_channel_layout']})</strong>
|
||||||
% endif
|
% endif
|
||||||
<br />
|
<br />
|
||||||
% endif
|
% endif
|
||||||
|
|
|
@ -56,6 +56,8 @@ MEDIA_FLAGS_VIDEO = {'avc1': 'h264',
|
||||||
'wmv3': 'wmvhd'
|
'wmv3': 'wmvhd'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AUDIO_CODEC_OVERRIDES = {'truehd': 'TrueHD'}
|
||||||
|
|
||||||
AUDIO_CHANNELS = {'1': 'Mono',
|
AUDIO_CHANNELS = {'1': 'Mono',
|
||||||
'2': 'Stereo',
|
'2': 'Stereo',
|
||||||
'3': '2.1',
|
'3': '2.1',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue