mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
add standalone EncodingOptions
This commit is contained in:
parent
1d501de6c4
commit
cb560ec779
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
function loadPage(page, config) {
|
function loadPage(page, config) {
|
||||||
|
|
||||||
$('#chkEnableDebugEncodingLogging', page).checked(config.EnableDebugEncodingLogging).checkboxradio('refresh');
|
$('#chkEnableDebugEncodingLogging', page).checked(config.EnableDebugLogging).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioEncodingQuality', page).each(function() {
|
$('.radioEncodingQuality', page).each(function() {
|
||||||
|
|
||||||
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
|
|
||||||
ApiClient.getServerConfiguration().done(function (config) {
|
ApiClient.getNamedConfiguration("encoding").done(function (config) {
|
||||||
|
|
||||||
loadPage(page, config);
|
loadPage(page, config);
|
||||||
|
|
||||||
@ -61,14 +61,14 @@
|
|||||||
|
|
||||||
var form = this;
|
var form = this;
|
||||||
|
|
||||||
ApiClient.getServerConfiguration().done(function (config) {
|
ApiClient.getNamedConfiguration("encoding").done(function (config) {
|
||||||
|
|
||||||
config.EnableDebugEncodingLogging = $('#chkEnableDebugEncodingLogging', form).checked();
|
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
|
||||||
config.MediaEncodingQuality = $('.radioEncodingQuality:checked', form).val();
|
config.MediaEncodingQuality = $('.radioEncodingQuality:checked', form).val();
|
||||||
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
|
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
|
||||||
config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val();
|
config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val();
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateNamedConfiguration("encoding", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Disable default form submission
|
// Disable default form submission
|
||||||
|
Loading…
Reference in New Issue
Block a user