Don't uppercase TrueHD

This commit is contained in:
JonnyWong16 2017-03-25 12:28:32 -07:00
parent f77e061ff1
commit ca093875b4
2 changed files with 5 additions and 3 deletions

View file

@ -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 &nbsp;<strong>Transcode (${data['audio_codec'].upper()} ${data['audio_channel_layout']} &rarr; ${data['stream_audio_codec'].upper()} ${data['stream_audio_channel_layout']})</strong> Audio &nbsp;<strong>Transcode (${plexpy.common.AUDIO_CODEC_OVERRIDES.get(data['audio_codec'], data['audio_codec'].upper())} ${data['audio_channel_layout']} &rarr; ${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 &nbsp;<strong>Direct Stream (${data['stream_audio_codec'].upper()} ${data['stream_audio_channel_layout']})</strong> Audio &nbsp;<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 &nbsp;<strong>Direct Play (${data['audio_codec'].upper()} ${data['audio_channel_layout']})</strong> Audio &nbsp;<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

View file

@ -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',