diff --git a/data/interfaces/default/index.html b/data/interfaces/default/index.html index 031988fd..be4b1604 100644 --- a/data/interfaces/default/index.html +++ b/data/interfaces/default/index.html @@ -320,7 +320,7 @@ // Update the transcode state var transcode_decision = ''; if (s.transcode_decision === 'transcode') { - var throttled = (s.throttled == '1') ? ' (Throttled)' : ' (Speed: ' + s.transcode_speed + ')'; + var throttled = (s.transcode_throttled == 1) ? ' (Throttled)' : ' (Speed: ' + s.transcode_speed + ')'; transcode_decision = 'Transcode' + throttled; } else if (s.transcode_decision === 'copy') { transcode_decision = 'Direct Stream'; @@ -362,9 +362,9 @@ if (s.stream_video_decision === 'transcode') { var hw_d = ''; var hw_e = ''; - if (s.transcode_hw_requested === '1' && s.transcode_hw_full_pipeline === '0') { + if (s.transcode_hw_requested === 1 && s.transcode_hw_full_pipeline === 0) { hw_d = ' (HW)'; - } else if (s.transcode_hw_requested === '1' && s.transcode_hw_full_pipeline === '1') { + } else if (s.transcode_hw_requested === 1 && s.transcode_hw_full_pipeline === 1) { hw_d = ' (HW)'; hw_e = ' (HW)'; } @@ -394,7 +394,7 @@ $('#audio_decision-' + key).html(audio_decision); var subtitle_decision = 'None'; - if (['movie', 'episode', 'clip'].indexOf(s.media_type) > -1 && s.subtitles == '1') { + if (['movie', 'episode', 'clip'].indexOf(s.media_type) > -1 && s.subtitles === 1) { if (s.stream_subtitle_decision === 'transcode') { subtitle_decision = 'Transcode (' + s.subtitle_codec.toUpperCase() + ' → ' + s.stream_subtitle_codec.toUpperCase() + ')'; } else if (s.stream_subtitle_decision === 'copy') {