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:
parent
9b05dab27e
commit
56266b37c7
1 changed files with 3 additions and 2 deletions
|
@ -944,14 +944,15 @@ import browser from './browser';
|
||||||
// Subtitle profiles
|
// Subtitle profiles
|
||||||
// External vtt or burn in
|
// External vtt or burn in
|
||||||
profile.SubtitleProfiles = [];
|
profile.SubtitleProfiles = [];
|
||||||
if (!options.isRetry && appSettings.get('subtitleburnin') !== 'all') {
|
const subtitleBurninSetting = appSettings.get('subtitleburnin');
|
||||||
|
if (!options.isRetry && subtitleBurninSetting !== 'all') {
|
||||||
if (supportsTextTracks()) {
|
if (supportsTextTracks()) {
|
||||||
profile.SubtitleProfiles.push({
|
profile.SubtitleProfiles.push({
|
||||||
Format: 'vtt',
|
Format: 'vtt',
|
||||||
Method: 'External'
|
Method: 'External'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (options.enableSsaRender !== false && appSettings.get('subtitleburnin') !== 'allcomplexformats') {
|
if (options.enableSsaRender !== false && subtitleBurninSetting !== 'allcomplexformats') {
|
||||||
profile.SubtitleProfiles.push({
|
profile.SubtitleProfiles.push({
|
||||||
Format: 'ass',
|
Format: 'ass',
|
||||||
Method: 'External'
|
Method: 'External'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue