Don't uppercase TrueHD
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user