Add subtitle direct stream to activity
This commit is contained in:
@@ -173,6 +173,8 @@ DOCUMENTATION :: END
|
|||||||
% if data['media_type'] in ('movie', 'episode', 'clip') and data['subtitles'] == '1':
|
% if data['media_type'] in ('movie', 'episode', 'clip') and data['subtitles'] == '1':
|
||||||
% if data['subtitle_decision'] == 'transcode':
|
% if data['subtitle_decision'] == 'transcode':
|
||||||
Subtitle <strong>Transcode (${data['subtitle_codec'].upper()} → ${data['stream_subtitle_codec'].upper()})</strong>
|
Subtitle <strong>Transcode (${data['subtitle_codec'].upper()} → ${data['stream_subtitle_codec'].upper()})</strong>
|
||||||
|
% elif data['subtitle_decision'] == 'copy':
|
||||||
|
Subtitle <strong>Direct Stream (${data['subtitle_codec'].upper()})</strong>
|
||||||
% elif data['subtitle_decision'] == 'burn':
|
% elif data['subtitle_decision'] == 'burn':
|
||||||
Subtitle <strong>Burn (${data['subtitle_codec'].upper()})</strong>
|
Subtitle <strong>Burn (${data['subtitle_codec'].upper()})</strong>
|
||||||
% else:
|
% else:
|
||||||
|
@@ -227,8 +227,10 @@
|
|||||||
if (s.subtitles) {
|
if (s.subtitles) {
|
||||||
if (s.subtitle_decision == 'transcode') {
|
if (s.subtitle_decision == 'transcode') {
|
||||||
ts += 'Subtitle <strong>Transcode (' + s.subtitle_codec.toUpperCase() + ' → ' + s.stream_subtitle_codec.toUpperCase() + ')</strong>';
|
ts += 'Subtitle <strong>Transcode (' + s.subtitle_codec.toUpperCase() + ' → ' + s.stream_subtitle_codec.toUpperCase() + ')</strong>';
|
||||||
|
} else if (s.subtitle_decision == 'copy') {
|
||||||
|
ts += 'Subtitle <strong>Direct Stream (' + s.subtitle_codec.toUpperCase() + ')</strong>';
|
||||||
} else if (s.subtitle_decision == 'burn') {
|
} else if (s.subtitle_decision == 'burn') {
|
||||||
ts += 'Subtitle <strong>Burn (' + s.stream_subtitle_codec.toUpperCase() + ')</strong>';
|
ts += 'Subtitle <strong>Burn (' + s.subtitle_codec.toUpperCase() + ')</strong>';
|
||||||
} else {
|
} else {
|
||||||
ts += 'Subtitle <strong>Direct Play (' + s.subtitle_codec.toUpperCase() + ')</strong>';
|
ts += 'Subtitle <strong>Direct Play (' + s.subtitle_codec.toUpperCase() + ')</strong>';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user