mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduce rescanning due to IsOffline
This commit is contained in:
parent
521b20f86a
commit
cbca3a20ae
23 changed files with 115 additions and 68 deletions
|
@ -9,12 +9,17 @@
|
|||
$('#txtDownMixAudioBoost', page).val(config.DownMixAudioBoost);
|
||||
page.querySelector('.txtEncoderPath').value = config.EncoderAppPath || '';
|
||||
$('#txtTranscodingTempPath', page).val(config.TranscodingTempPath || '');
|
||||
$('#txtVaapiDevice', page).val(config.VaapiDevice || '');
|
||||
|
||||
var selectEncoderPath = page.querySelector('#selectEncoderPath');
|
||||
|
||||
selectEncoderPath.value = systemInfo.EncoderLocationType;
|
||||
onSelectEncoderPathChange.call(selectEncoderPath);
|
||||
|
||||
page.querySelector('#selectVideoDecoder').dispatchEvent(new CustomEvent('change', {
|
||||
bubbles: true
|
||||
}));
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
|
@ -64,6 +69,7 @@
|
|||
config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val();
|
||||
config.EncodingThreadCount = $('#selectThreadCount', form).val();
|
||||
config.HardwareAccelerationType = $('#selectVideoDecoder', form).val();
|
||||
config.VaapiDevice = $('#txtVaapiDevice', form).val();
|
||||
|
||||
config.EnableThrottling = form.querySelector('#chkEnableThrottle').checked;
|
||||
|
||||
|
@ -129,6 +135,19 @@
|
|||
|
||||
var page = this;
|
||||
|
||||
page.querySelector('#selectVideoDecoder').addEventListener('change', function () {
|
||||
|
||||
if (this.value == 'vaapi') {
|
||||
|
||||
page.querySelector('.fldVaapiDevice').classList.remove('hide');
|
||||
page.querySelector('#txtVaapiDevice').setAttribute('required', 'required');
|
||||
|
||||
} else {
|
||||
page.querySelector('.fldVaapiDevice').classList.add('hide');
|
||||
page.querySelector('#txtVaapiDevice').removeAttribute('required');
|
||||
}
|
||||
});
|
||||
|
||||
$('#btnSelectEncoderPath', page).on("click.selectDirectory", function () {
|
||||
|
||||
require(['directorybrowser'], function (directoryBrowser) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue