1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Using const for Subtitle Burnin Setting.

This commit is contained in:
BrianCArnold 2021-04-26 20:35:17 -04:00 committed by Brian C. Arnold
parent 9b05dab27e
commit 56266b37c7

View file

@ -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'