diff --git a/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.js b/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.js index 182606c7a2..0130078518 100644 --- a/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.js +++ b/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.js @@ -38,6 +38,14 @@ } else { parent.querySelector('.chkEnablePhotosContainer').classList.add('hide'); } + + if (contentType == 'tvshows' || contentType == 'movies' || contentType == 'homevideos' || contentType == 'musicvideos' || contentType == 'mixed' || !contentType) { + parent.querySelector('.fldExtractChaptersDuringLibraryScan').classList.remove('hide'); + parent.querySelector('.fldExtractChapterImages').classList.remove('hide'); + } else { + parent.querySelector('.fldExtractChaptersDuringLibraryScan').classList.add('hide'); + parent.querySelector('.fldExtractChapterImages').classList.add('hide'); + } } function getLibraryOptions(parent) { @@ -45,7 +53,9 @@ var options = { EnableArchiveMediaFiles: parent.querySelector('.chkArhiveAsMedia').checked, EnablePhotos: parent.querySelector('.chkEnablePhotos').checked, - EnableRealtimeMonitor: parent.querySelector('.chkEnableRealtimeMonitor').checked + EnableRealtimeMonitor: parent.querySelector('.chkEnableRealtimeMonitor').checked, + ExtractChapterImagesDuringLibraryScan: parent.querySelector('.chkExtractChaptersDuringLibraryScan').checked, + EnableChapterImageExtraction: parent.querySelector('.chkExtractChapterImages').checked }; return options; @@ -56,6 +66,8 @@ parent.querySelector('.chkArhiveAsMedia').checked = options.EnableArchiveMediaFiles; parent.querySelector('.chkEnablePhotos').checked = options.EnablePhotos; parent.querySelector('.chkEnableRealtimeMonitor').checked = options.EnableRealtimeMonitor; + parent.querySelector('.chkExtractChaptersDuringLibraryScan').checked = options.ExtractChapterImagesDuringLibraryScan; + parent.querySelector('.chkExtractChapterImages').checked = options.EnableChapterImageExtraction; } return { diff --git a/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.template.html b/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.template.html index 7f3f9c9a89..1548fa1b30 100644 --- a/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.template.html +++ b/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.template.html @@ -8,12 +8,28 @@
';
+ errorMsg += '
';
+ errorMsg += '
';
errorMsg += Globalize.translate('MessageEnsureOpenTuner');
- errorMsg += '