diff --git a/dashboard-ui/scripts/encodingsettings.js b/dashboard-ui/scripts/encodingsettings.js index 955f7c0f15..721695b600 100644 --- a/dashboard-ui/scripts/encodingsettings.js +++ b/dashboard-ui/scripts/encodingsettings.js @@ -2,7 +2,7 @@ function loadPage(page, config) { - $('#chkEnableDebugEncodingLogging', page).checked(config.EnableDebugEncodingLogging).checkboxradio('refresh'); + $('#chkEnableDebugEncodingLogging', page).checked(config.EnableDebugLogging).checkboxradio('refresh'); $('.radioEncodingQuality', page).each(function() { @@ -46,7 +46,7 @@ var page = this; - ApiClient.getServerConfiguration().done(function (config) { + ApiClient.getNamedConfiguration("encoding").done(function (config) { loadPage(page, config); @@ -61,14 +61,14 @@ 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.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val(); config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val(); - ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult); + ApiClient.updateNamedConfiguration("encoding", config).done(Dashboard.processServerConfigurationUpdateResult); }); // Disable default form submission