Add subtitle direct stream to activity

This commit is contained in:
JonnyWong16 2017-03-03 16:56:07 -08:00
commit 78fd83746e
2 changed files with 5 additions and 1 deletions

View file

@ -173,6 +173,8 @@ DOCUMENTATION :: END
% if data['media_type'] in ('movie', 'episode', 'clip') and data['subtitles'] == '1':
% if data['subtitle_decision'] == 'transcode':
Subtitle &nbsp;<strong>Transcode (${data['subtitle_codec'].upper()} &rarr; ${data['stream_subtitle_codec'].upper()})</strong>
% elif data['subtitle_decision'] == 'copy':
Subtitle &nbsp;<strong>Direct Stream (${data['subtitle_codec'].upper()})</strong>
% elif data['subtitle_decision'] == 'burn':
Subtitle &nbsp;<strong>Burn (${data['subtitle_codec'].upper()})</strong>
% else:

View file

@ -227,8 +227,10 @@
if (s.subtitles) {
if (s.subtitle_decision == 'transcode') {
ts += 'Subtitle &nbsp;<strong>Transcode (' + s.subtitle_codec.toUpperCase() + ' &rarr; ' + s.stream_subtitle_codec.toUpperCase() + ')</strong>';
} else if (s.subtitle_decision == 'copy') {
ts += 'Subtitle &nbsp;<strong>Direct Stream (' + s.subtitle_codec.toUpperCase() + ')</strong>';
} else if (s.subtitle_decision == 'burn') {
ts += 'Subtitle &nbsp;<strong>Burn (' + s.stream_subtitle_codec.toUpperCase() + ')</strong>';
ts += 'Subtitle &nbsp;<strong>Burn (' + s.subtitle_codec.toUpperCase() + ')</strong>';
} else {
ts += 'Subtitle &nbsp;<strong>Direct Play (' + s.subtitle_codec.toUpperCase() + ')</strong>';
}