mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add additional metadata config tab
This commit is contained in:
parent
121d1de0af
commit
02cd0a7b6f
8 changed files with 111 additions and 45 deletions
|
@ -6,19 +6,18 @@
|
|||
|
||||
var page = this;
|
||||
|
||||
var promise1 = ApiClient.getServerConfiguration();
|
||||
var promise2 = ApiClient.getItemTypes({ HasInternetProvider: true });
|
||||
ApiClient.getServerConfiguration().done(function (configuration) {
|
||||
|
||||
$.when(promise1, promise2).done(function (response1, response2) {
|
||||
|
||||
AdvancedMetadataConfigurationPage.load(page, response1[0], response2[0]);
|
||||
AdvancedMetadataConfigurationPage.load(page, configuration);
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
load: function (page, config, itemTypes) {
|
||||
load: function (page, config) {
|
||||
|
||||
$('#chkEnableTmdbPersonUpdates', page).checked(config.EnableTmdbUpdates).checkboxradio("refresh");
|
||||
$('#chkEnableTvdbUpdates', page).checked(config.EnableTvDbUpdates).checkboxradio("refresh");
|
||||
|
||||
AdvancedMetadataConfigurationPage.loadItemTypes(page, config, itemTypes);
|
||||
Dashboard.hideLoadingMsg();
|
||||
},
|
||||
|
||||
|
@ -49,10 +48,8 @@
|
|||
|
||||
ApiClient.getServerConfiguration().done(function (config) {
|
||||
|
||||
config.InternetProviderExcludeTypes = $.map($('.chkItemType:checked', form), function (currentCheckbox) {
|
||||
|
||||
return currentCheckbox.getAttribute('data-itemtype');
|
||||
});
|
||||
config.EnableTvDbUpdates = $('#chkEnableTvdbUpdates', form).checked();
|
||||
config.EnableTmdbUpdates = $('#chkEnableTmdbPersonUpdates', form).checked();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue