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

Merge pull request #5906 from gnattu/burn-subtitle-transcoding

This commit is contained in:
Bill Thornton 2024-10-09 14:15:18 -04:00 committed by GitHub
commit 52d4919df4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 88 additions and 15 deletions

View file

@ -156,6 +156,19 @@ class AppSettings {
return this.get('preferredTranscodeVideoAudioCodec') || '';
}
/**
* Get or set 'Always burn in subtitle when transcoding' state.
* @param {boolean|undefined} val - Flag to enable 'Always burn in subtitle when transcoding' or undefined.
* @return {boolean} 'Always burn in subtitle when transcoding' state.
*/
alwaysBurnInSubtitleWhenTranscoding(val) {
if (val !== undefined) {
return this.set('alwaysBurnInSubtitleWhenTranscoding', val.toString());
}
return toBoolean(this.get('alwaysBurnInSubtitleWhenTranscoding'), false);
}
/**
* Get or set 'Enable DTS' state.
* @param {boolean|undefined} val - Flag to enable 'Enable DTS' or undefined.