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

Merge pull request #2627 from BrianCArnold/AddBurnInAll

Added ability to burn in all subtitles, including SRT.
This commit is contained in:
Bill Thornton 2021-05-03 12:39:31 -04:00 committed by GitHub
commit 7c0eba9853
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 15 deletions

View file

@ -28,6 +28,7 @@
<option value="">${Auto}</option> <option value="">${Auto}</option>
<option value="onlyimageformats">${OnlyImageFormats}</option> <option value="onlyimageformats">${OnlyImageFormats}</option>
<option value="allcomplexformats">${AllComplexFormats}</option> <option value="allcomplexformats">${AllComplexFormats}</option>
<option value="all">${All}</option>
</select> </select>
<div class="fieldDescription">${BurnSubtitlesHelp}</div> <div class="fieldDescription">${BurnSubtitlesHelp}</div>
</div> </div>

View file

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