From 56266b37c71934cef86ea9aa0fef0808c46f41ba Mon Sep 17 00:00:00 2001 From: BrianCArnold Date: Mon, 26 Apr 2021 20:35:17 -0400 Subject: [PATCH] Using const for Subtitle Burnin Setting. --- src/scripts/browserDeviceProfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index a9382be44d..b3e3d59156 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -944,14 +944,15 @@ import browser from './browser'; // Subtitle profiles // External vtt or burn in profile.SubtitleProfiles = []; - if (!options.isRetry && appSettings.get('subtitleburnin') !== 'all') { + const subtitleBurninSetting = appSettings.get('subtitleburnin'); + if (!options.isRetry && subtitleBurninSetting !== 'all') { if (supportsTextTracks()) { profile.SubtitleProfiles.push({ Format: 'vtt', Method: 'External' }); } - if (options.enableSsaRender !== false && appSettings.get('subtitleburnin') !== 'allcomplexformats') { + if (options.enableSsaRender !== false && subtitleBurninSetting !== 'allcomplexformats') { profile.SubtitleProfiles.push({ Format: 'ass', Method: 'External'