mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add subtitle/audio auto-set feature.
This commit is contained in:
parent
1794ab53fe
commit
d8e7e14da0
5 changed files with 118 additions and 6 deletions
|
@ -169,6 +169,19 @@ export class UserSettings {
|
|||
return val !== 'false';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'SetUsingLastTracks' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'SetUsingLastTracks' or undefined.
|
||||
* @return {boolean} 'SetUsingLastTracks' state.
|
||||
*/
|
||||
enableSetUsingLastTracks(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('enableSetUsingLastTracks', val.toString());
|
||||
}
|
||||
|
||||
return this.get('enableSetUsingLastTracks', false) === 'true';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Theme Songs' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Theme Songs' or undefined.
|
||||
|
@ -488,6 +501,7 @@ export const allowedAudioChannels = currentSettings.allowedAudioChannels.bind(cu
|
|||
export const preferFmp4HlsContainer = currentSettings.preferFmp4HlsContainer.bind(currentSettings);
|
||||
export const enableCinemaMode = currentSettings.enableCinemaMode.bind(currentSettings);
|
||||
export const enableNextVideoInfoOverlay = currentSettings.enableNextVideoInfoOverlay.bind(currentSettings);
|
||||
export const enableSetUsingLastTracks = currentSettings.enableSetUsingLastTracks.bind(currentSettings);
|
||||
export const enableThemeSongs = currentSettings.enableThemeSongs.bind(currentSettings);
|
||||
export const enableThemeVideos = currentSettings.enableThemeVideos.bind(currentSettings);
|
||||
export const enableFastFadein = currentSettings.enableFastFadein.bind(currentSettings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue