mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
move download images in advance option from global to per library
This commit is contained in:
parent
13096410b0
commit
7a2ba6f131
5 changed files with 20 additions and 13 deletions
|
@ -33,12 +33,18 @@
|
||||||
parent.querySelector('.chkArhiveAsMediaContainer').classList.add('hide');
|
parent.querySelector('.chkArhiveAsMediaContainer').classList.add('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (contentType == 'homevideos') {
|
if (contentType == 'homevideos' || contentType == 'photos') {
|
||||||
parent.querySelector('.chkEnablePhotosContainer').classList.remove('hide');
|
parent.querySelector('.chkEnablePhotosContainer').classList.remove('hide');
|
||||||
} else {
|
} else {
|
||||||
parent.querySelector('.chkEnablePhotosContainer').classList.add('hide');
|
parent.querySelector('.chkEnablePhotosContainer').classList.add('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (contentType == 'homevideos') {
|
||||||
|
parent.querySelector('.chkDownloadImagesInAdvanceContainer').classList.add('hide');
|
||||||
|
} else {
|
||||||
|
parent.querySelector('.chkDownloadImagesInAdvanceContainer').classList.remove('hide');
|
||||||
|
}
|
||||||
|
|
||||||
if (contentType == 'tvshows' || contentType == 'movies' || contentType == 'homevideos' || contentType == 'musicvideos' || contentType == 'mixed' || !contentType) {
|
if (contentType == 'tvshows' || contentType == 'movies' || contentType == 'homevideos' || contentType == 'musicvideos' || contentType == 'mixed' || !contentType) {
|
||||||
parent.querySelector('.fldExtractChaptersDuringLibraryScan').classList.remove('hide');
|
parent.querySelector('.fldExtractChaptersDuringLibraryScan').classList.remove('hide');
|
||||||
parent.querySelector('.fldExtractChapterImages').classList.remove('hide');
|
parent.querySelector('.fldExtractChapterImages').classList.remove('hide');
|
||||||
|
@ -55,7 +61,8 @@
|
||||||
EnablePhotos: parent.querySelector('.chkEnablePhotos').checked,
|
EnablePhotos: parent.querySelector('.chkEnablePhotos').checked,
|
||||||
EnableRealtimeMonitor: parent.querySelector('.chkEnableRealtimeMonitor').checked,
|
EnableRealtimeMonitor: parent.querySelector('.chkEnableRealtimeMonitor').checked,
|
||||||
ExtractChapterImagesDuringLibraryScan: parent.querySelector('.chkExtractChaptersDuringLibraryScan').checked,
|
ExtractChapterImagesDuringLibraryScan: parent.querySelector('.chkExtractChaptersDuringLibraryScan').checked,
|
||||||
EnableChapterImageExtraction: parent.querySelector('.chkExtractChapterImages').checked
|
EnableChapterImageExtraction: parent.querySelector('.chkExtractChapterImages').checked,
|
||||||
|
DownloadImagesInAdvance: parent.querySelector('#chkDownloadImagesInAdvance').checked
|
||||||
};
|
};
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
@ -68,6 +75,7 @@
|
||||||
parent.querySelector('.chkEnableRealtimeMonitor').checked = options.EnableRealtimeMonitor;
|
parent.querySelector('.chkEnableRealtimeMonitor').checked = options.EnableRealtimeMonitor;
|
||||||
parent.querySelector('.chkExtractChaptersDuringLibraryScan').checked = options.ExtractChapterImagesDuringLibraryScan;
|
parent.querySelector('.chkExtractChaptersDuringLibraryScan').checked = options.ExtractChapterImagesDuringLibraryScan;
|
||||||
parent.querySelector('.chkExtractChapterImages').checked = options.EnableChapterImageExtraction;
|
parent.querySelector('.chkExtractChapterImages').checked = options.EnableChapterImageExtraction;
|
||||||
|
parent.querySelector('#chkDownloadImagesInAdvance').checked = options.DownloadImagesInAdvance;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -14,6 +14,14 @@
|
||||||
<div class="fieldDescription checkboxFieldDescription">${LabelEnableRealtimeMonitorHelp}</div>
|
<div class="fieldDescription checkboxFieldDescription">${LabelEnableRealtimeMonitorHelp}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="checkboxContainer checkboxContainer-withDescription hide chkDownloadImagesInAdvanceContainer">
|
||||||
|
<label>
|
||||||
|
<input is="emby-checkbox" type="checkbox" id="chkDownloadImagesInAdvance" />
|
||||||
|
<span>${OptionDownloadImagesInAdvance}</span>
|
||||||
|
</label>
|
||||||
|
<div class="fieldDescription checkboxFieldDescription">${OptionDownloadImagesInAdvanceHelp}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="checkboxContainer checkboxContainer-withDescription fldExtractChapterImages hide">
|
<div class="checkboxContainer checkboxContainer-withDescription fldExtractChapterImages hide">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" is="emby-checkbox" class="chkExtractChapterImages" />
|
<input type="checkbox" is="emby-checkbox" class="chkExtractChapterImages" />
|
||||||
|
|
|
@ -20,13 +20,6 @@
|
||||||
</label>
|
</label>
|
||||||
<div class="fieldDescription checkboxFieldDescription">${LabelSaveLocalMetadataHelp}</div>
|
<div class="fieldDescription checkboxFieldDescription">${LabelSaveLocalMetadataHelp}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
||||||
<label>
|
|
||||||
<input is="emby-checkbox" type="checkbox" id="chkDownloadImagesInAdvance" />
|
|
||||||
<span>${OptionDownloadImagesInAdvance}</span>
|
|
||||||
</label>
|
|
||||||
<div class="fieldDescription checkboxFieldDescription">${OptionDownloadImagesInAdvanceHelp}</div>
|
|
||||||
</div>
|
|
||||||
<div class="selectContainer">
|
<div class="selectContainer">
|
||||||
<select is="emby-select" id="selectLanguage" label="${LabelMetadataDownloadLanguage}" required="required"></select>
|
<select is="emby-select" id="selectLanguage" label="${LabelMetadataDownloadLanguage}" required="required"></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
page.querySelector('#chkSaveLocal').checked = config.SaveLocalMeta;
|
page.querySelector('#chkSaveLocal').checked = config.SaveLocalMeta;
|
||||||
$('#selectLanguage', page).val(config.PreferredMetadataLanguage);
|
$('#selectLanguage', page).val(config.PreferredMetadataLanguage);
|
||||||
$('#selectCountry', page).val(config.MetadataCountryCode);
|
$('#selectCountry', page).val(config.MetadataCountryCode);
|
||||||
$('#chkDownloadImagesInAdvance', page).checked(config.DownloadImagesInAdvance);
|
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
@ -25,7 +24,6 @@
|
||||||
config.SaveLocalMeta = form.querySelector('#chkSaveLocal').checked;
|
config.SaveLocalMeta = form.querySelector('#chkSaveLocal').checked;
|
||||||
config.PreferredMetadataLanguage = $('#selectLanguage', form).val();
|
config.PreferredMetadataLanguage = $('#selectLanguage', form).val();
|
||||||
config.MetadataCountryCode = $('#selectCountry', form).val();
|
config.MetadataCountryCode = $('#selectCountry', form).val();
|
||||||
config.DownloadImagesInAdvance = $('#chkDownloadImagesInAdvance', form).checked();
|
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).then(function() {
|
ApiClient.updateServerConfiguration(config).then(function() {
|
||||||
Dashboard.processServerConfigurationUpdateResult();
|
Dashboard.processServerConfigurationUpdateResult();
|
||||||
|
|
|
@ -1342,9 +1342,9 @@
|
||||||
"FileExtension": "File extension",
|
"FileExtension": "File extension",
|
||||||
"OptionReplaceExistingImages": "Replace existing images",
|
"OptionReplaceExistingImages": "Replace existing images",
|
||||||
"OptionPlayNextEpisodeAutomatically": "Play next episode automatically",
|
"OptionPlayNextEpisodeAutomatically": "Play next episode automatically",
|
||||||
"OptionDownloadImagesInAdvance": "Download all images in advance",
|
"OptionDownloadImagesInAdvance": "Download images in advance",
|
||||||
"SettingsSaved": "Settings saved.",
|
"SettingsSaved": "Settings saved.",
|
||||||
"OptionDownloadImagesInAdvanceHelp": "By default, most secondary images are only downloaded when requested by an Emby app. Enable this option to download all images in advance, as new media is imported.",
|
"OptionDownloadImagesInAdvanceHelp": "By default, most images are only downloaded when requested by an Emby app. Enable this option to download all images in advance, as new media is imported.",
|
||||||
"Users": "Users",
|
"Users": "Users",
|
||||||
"Delete": "Delete",
|
"Delete": "Delete",
|
||||||
"Password": "Password",
|
"Password": "Password",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue