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="onlyimageformats">${OnlyImageFormats}</option>
<option value="allcomplexformats">${AllComplexFormats}</option>
<option value="all">${All}</option>
</select>
<div class="fieldDescription">${BurnSubtitlesHelp}</div>
</div>

View file

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