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 @@
${LabelEnableRealtimeMonitorHelp}
+
+ +
${ExtractChapterImagesHelp}
+
+ +
+ +
${LabelExtractChaptersDuringLibraryScanHelp}
+
+

-
-
-
-
-
${HeaderExtractChapterImagesFor}
-
- ${OptionMovies} - - ${OptionEpisodes} - - ${OptionOtherVideos} -
-
${ExtractChapterImagesHelp}
-
-
-
- ${LabelExtractChaptersDuringLibraryScan} -
${LabelExtractChaptersDuringLibraryScanHelp}
-
-
-
-
diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index a1fe0fc913..1948be9864 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -1250,10 +1250,16 @@ var errorMsg = Globalize.translate('MessageErrorPlayingVideo'); var item = self.currentItem; + var mediaSource = self.currentMediaSource; if (item && item.Type == "TvChannel") { - errorMsg += '

'; + errorMsg += '
'; + errorMsg += '
'; errorMsg += Globalize.translate('MessageEnsureOpenTuner'); - errorMsg += '

'; + } + if (mediaSource && mediaSource.VideoType != "VideoFile") { + errorMsg += '
'; + errorMsg += '
'; + errorMsg += Globalize.translate('MessageFolderRipPlaybackExperimental'); } Dashboard.alert({ diff --git a/dashboard-ui/strings/en-US.json b/dashboard-ui/strings/en-US.json index dad7d4db27..1bc7632c9a 100644 --- a/dashboard-ui/strings/en-US.json +++ b/dashboard-ui/strings/en-US.json @@ -2224,5 +2224,7 @@ "LabelMaxAudioFileBitrateHelp": "Audio files with a higher bitrate will be converted by Emby Server. Select a higher value for better quality, or a lower value to conserve local storage space.", "LabelVaapiDevice": "VA API Device:", "LabelVaapiDeviceHelp": "This is the render node that is used for hardware acceleration.", - "HowToConnectFromEmbyApps": "How to Connect from Emby apps" + "HowToConnectFromEmbyApps": "How to Connect from Emby apps", + "MessageFolderRipPlaybackExperimental": "Support for playback of folder rips and ISOs in this app is only expirimental. For best results, try an Emby app that supports these formats natively, or use plain video files.", + "OptionExtractChapterImage": "Enable chapter image extraction" }