mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
move more metadata settings to per library
This commit is contained in:
parent
9dcf14df27
commit
af2e209ce4
20 changed files with 79 additions and 85 deletions
|
@ -35,14 +35,18 @@
|
|||
|
||||
if (contentType == 'homevideos' || contentType == 'photos') {
|
||||
parent.querySelector('.chkEnablePhotosContainer').classList.remove('hide');
|
||||
parent.querySelector('.chkDownloadImagesInAdvanceContainer').classList.add('hide');
|
||||
parent.querySelector('.chkEnableInternetProvidersContainer').classList.add('hide');
|
||||
} else {
|
||||
parent.querySelector('.chkEnablePhotosContainer').classList.add('hide');
|
||||
parent.querySelector('.chkDownloadImagesInAdvanceContainer').classList.remove('hide');
|
||||
parent.querySelector('.chkEnableInternetProvidersContainer').classList.remove('hide');
|
||||
}
|
||||
|
||||
if (contentType == 'homevideos') {
|
||||
parent.querySelector('.chkDownloadImagesInAdvanceContainer').classList.add('hide');
|
||||
if (contentType == 'photos') {
|
||||
parent.querySelector('.chkSaveLocalContainer').classList.add('hide');
|
||||
} else {
|
||||
parent.querySelector('.chkDownloadImagesInAdvanceContainer').classList.remove('hide');
|
||||
parent.querySelector('.chkSaveLocalContainer').classList.remove('hide');
|
||||
}
|
||||
|
||||
if (contentType == 'tvshows' || contentType == 'movies' || contentType == 'homevideos' || contentType == 'musicvideos' || contentType == 'mixed' || !contentType) {
|
||||
|
@ -62,7 +66,9 @@
|
|||
EnableRealtimeMonitor: parent.querySelector('.chkEnableRealtimeMonitor').checked,
|
||||
ExtractChapterImagesDuringLibraryScan: parent.querySelector('.chkExtractChaptersDuringLibraryScan').checked,
|
||||
EnableChapterImageExtraction: parent.querySelector('.chkExtractChapterImages').checked,
|
||||
DownloadImagesInAdvance: parent.querySelector('#chkDownloadImagesInAdvance').checked
|
||||
DownloadImagesInAdvance: parent.querySelector('#chkDownloadImagesInAdvance').checked,
|
||||
EnableInternetProviders: parent.querySelector('#chkEnableInternetProviders').checked,
|
||||
SaveLocalMetadata: parent.querySelector('#chkSaveLocal').checked
|
||||
};
|
||||
|
||||
return options;
|
||||
|
@ -76,6 +82,8 @@
|
|||
parent.querySelector('.chkExtractChaptersDuringLibraryScan').checked = options.ExtractChapterImagesDuringLibraryScan;
|
||||
parent.querySelector('.chkExtractChapterImages').checked = options.EnableChapterImageExtraction;
|
||||
parent.querySelector('#chkDownloadImagesInAdvance').checked = options.DownloadImagesInAdvance;
|
||||
parent.querySelector('#chkEnableInternetProviders').checked = options.EnableInternetProviders;
|
||||
parent.querySelector('#chkSaveLocal').checked = options.SaveLocalMetadata;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue