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

Added ability to burn in all subtitles, including SRT.

This commit is contained in:
Brian C. Arnold 2021-04-25 20:31:19 -04:00
parent ab9bc8185f
commit 9b05dab27e
2 changed files with 18 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

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