From 3fe335618df58513128ece60c45ea0a869920fda Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 31 Aug 2016 17:07:02 -0400 Subject: [PATCH] add setting to hide external content from suggestions --- dashboard-ui/dashboard/librarydisplay.js | 2 ++ dashboard-ui/librarydisplay.html | 8 ++++++++ dashboard-ui/strings/en-US.json | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/dashboard/librarydisplay.js b/dashboard-ui/dashboard/librarydisplay.js index 131d4f7df..bd7b0271c 100644 --- a/dashboard-ui/dashboard/librarydisplay.js +++ b/dashboard-ui/dashboard/librarydisplay.js @@ -37,6 +37,7 @@ config.DisplaySpecialsWithinSeasons = form.querySelector('.chkDisplaySpecialsWithinSeasons').checked; config.DisplayCollectionsView = form.querySelector('.chkDisplayCollectionView').checked; config.EnableChannelView = !form.querySelector('.chkDisplayChannelsInline').checked; + config.EnableExternalContentInSuggestions = form.querySelector('.chkExternalContentInSuggestions').checked; ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult); }); @@ -52,6 +53,7 @@ view.querySelector('.chkDisplaySpecialsWithinSeasons').checked = config.DisplaySpecialsWithinSeasons; view.querySelector('.chkDisplayCollectionView').checked = config.DisplayCollectionsView; view.querySelector('.chkDisplayChannelsInline').checked = !(config.EnableChannelView || false); + view.querySelector('.chkExternalContentInSuggestions').checked = config.EnableExternalContentInSuggestions; }); } diff --git a/dashboard-ui/librarydisplay.html b/dashboard-ui/librarydisplay.html index 23979d5f9..3ae1840a6 100644 --- a/dashboard-ui/librarydisplay.html +++ b/dashboard-ui/librarydisplay.html @@ -41,6 +41,14 @@
${OptionDisplayChannelsInlineHelp}
+ +
+ +
${OptionEnableExternalContentInSuggestionsHelp}
+

diff --git a/dashboard-ui/strings/en-US.json b/dashboard-ui/strings/en-US.json index 33a7960ad..193cb15bf 100644 --- a/dashboard-ui/strings/en-US.json +++ b/dashboard-ui/strings/en-US.json @@ -2227,5 +2227,7 @@ "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", - "Downloads": "Downloads" + "Downloads": "Downloads", + "OptionEnableExternalContentInSuggestions": "Enable external content in suggestions", + "OptionEnableExternalContentInSuggestionsHelp": "Allow internet trailers and live tv programs to be included within suggested content." }