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

Update src/scripts/browserDeviceProfile.js

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
BrianCArnold 2021-05-01 16:56:37 -04:00 committed by GitHub
parent 56266b37c7
commit c7e6b77d13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -945,14 +945,14 @@ import browser from './browser';
// External vtt or burn in // External vtt or burn in
profile.SubtitleProfiles = []; profile.SubtitleProfiles = [];
const subtitleBurninSetting = appSettings.get('subtitleburnin'); const subtitleBurninSetting = appSettings.get('subtitleburnin');
if (!options.isRetry && subtitleBurninSetting !== 'all') { if (subtitleBurninSetting !== 'all') {
if (supportsTextTracks()) { if (supportsTextTracks()) {
profile.SubtitleProfiles.push({ profile.SubtitleProfiles.push({
Format: 'vtt', Format: 'vtt',
Method: 'External' Method: 'External'
}); });
} }
if (options.enableSsaRender !== false && subtitleBurninSetting !== 'allcomplexformats') { if (options.enableSsaRender !== false && !options.isRetry && subtitleBurninSetting !== 'allcomplexformats') {
profile.SubtitleProfiles.push({ profile.SubtitleProfiles.push({
Format: 'ass', Format: 'ass',
Method: 'External' Method: 'External'