add setting to hide external content from suggestions

This commit is contained in:
Luke Pulverenti 2016-08-31 17:07:02 -04:00
parent 218112efc1
commit 3fe335618d
3 changed files with 13 additions and 1 deletions

View File

@ -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;
});
}

View File

@ -41,6 +41,14 @@
</label>
<div class="fieldDescription checkboxFieldDescription">${OptionDisplayChannelsInlineHelp}</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input class="chkExternalContentInSuggestions" type="checkbox" is="emby-checkbox" />
<span>${OptionEnableExternalContentInSuggestions}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${OptionEnableExternalContentInSuggestionsHelp}</div>
</div>
<br />
<button is="emby-button" type="submit" class="raised submit block"><i class="md-icon">check</i><span>${ButtonSave}</span></button>

View File

@ -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."
}