mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update wizard function of enable/disable local metadata saving
This commit is contained in:
parent
76d7223294
commit
a43da6cd63
4 changed files with 22 additions and 10 deletions
|
@ -762,7 +762,7 @@ a.itemTag:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
.detailPageContent {
|
.detailPageContent {
|
||||||
max-width: 850px;
|
max-width: 900px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.primaryDetailPageContent {
|
.primaryDetailPageContent {
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="checkbox" id="chkSaveLocal" name="chkSaveLocal" data-mini="true" />
|
<input type="checkbox" id="chkSaveLocal" name="chkSaveLocal" data-mini="true" />
|
||||||
<label for="chkSaveLocal">Save metadata and images within media folders </label>
|
<label for="chkSaveLocal">Save images within media folders </label>
|
||||||
<div class="fieldDescription">Save downloaded metadata and images into media folders where they can be stored permanently and easily edited.</div>
|
<div class="fieldDescription">Save downloaded images into media folders where they can be stored permanently and easily edited. Metadata savers are configured separately on a per-type basis.</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="selectImageSavingConvention">Image saving convention: </label>
|
<label for="selectImageSavingConvention">Image saving convention: </label>
|
||||||
|
|
|
@ -1602,6 +1602,10 @@
|
||||||
|
|
||||||
$('.libraryTree', page).on('itemclicked', function (event, data) {
|
$('.libraryTree', page).on('itemclicked', function (event, data) {
|
||||||
|
|
||||||
|
if (data.itemType == "livetvservice") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (data.id != currentItem.Id) {
|
if (data.id != currentItem.Id) {
|
||||||
|
|
||||||
MetadataEditor.currentItemId = data.id;
|
MetadataEditor.currentItemId = data.id;
|
||||||
|
|
|
@ -4,19 +4,27 @@
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
// After saving chapter task, now save server config
|
$.ajax({
|
||||||
ApiClient.getServerConfiguration().done(function (config) {
|
type: "POST",
|
||||||
|
url: ApiClient.getUrl("System/Configuration/SaveLocalMetadata", { Enabled: $('#chkSaveLocalMetadata', page).checked() })
|
||||||
|
|
||||||
|
}).done(function() {
|
||||||
|
|
||||||
|
|
||||||
config.SaveLocalMeta = $('#chkSaveLocalMetadata', page).checked();
|
// After saving chapter task, now save server config
|
||||||
config.PreferredMetadataLanguage = $('#selectLanguage', page).val();
|
ApiClient.getServerConfiguration().done(function (config) {
|
||||||
config.MetadataCountryCode = $('#selectCountry', page).val();
|
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).done(function (result) {
|
config.PreferredMetadataLanguage = $('#selectLanguage', page).val();
|
||||||
|
config.MetadataCountryCode = $('#selectCountry', page).val();
|
||||||
|
|
||||||
navigateToNextPage();
|
ApiClient.updateServerConfiguration(config).done(function (result) {
|
||||||
|
|
||||||
|
navigateToNextPage();
|
||||||
|
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue