|
|
|
@ -12,6 +12,18 @@
|
|
|
|
|
<input is="emby-checkbox" type="checkbox" id="includeAdult" />
|
|
|
|
|
<span>Include adult content in search results.</span>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="checkboxContainer">
|
|
|
|
|
<input is="emby-checkbox" type="checkbox" id="excludeTagsSeries" />
|
|
|
|
|
<span>Exclude tags/keywords from metadata fetched for series.</span>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="checkboxContainer">
|
|
|
|
|
<input is="emby-checkbox" type="checkbox" id="excludeTagsMovies" />
|
|
|
|
|
<span>Exclude tags/keywords from metadata fetched for movies.</span>
|
|
|
|
|
</label>
|
|
|
|
|
<div class="inputContainer">
|
|
|
|
|
<input is="emby-input" type="number" id="maxCastMembers" pattern="[0-9]*" required min="0" max="1000" label="Max Cast Members" />
|
|
|
|
|
<div class="fieldDescription">The maximum number of cast members to fetch for an item.</div>
|
|
|
|
|
</div>
|
|
|
|
|
<br />
|
|
|
|
|
<div>
|
|
|
|
|
<button is="emby-button" type="submit" class="raised button-submit block"><span>Save</span></button>
|
|
|
|
@ -31,6 +43,14 @@
|
|
|
|
|
document.querySelector('#includeAdult').checked = config.IncludeAdult;
|
|
|
|
|
document.querySelector('#excludeTagsSeries').checked = config.ExcludeTagsSeries;
|
|
|
|
|
document.querySelector('#excludeTagsMovies').checked = config.ExcludeTagsMovies;
|
|
|
|
|
|
|
|
|
|
var maxCastMembers = document.querySelector('#maxCastMembers');
|
|
|
|
|
maxCastMembers.value = config.MaxCastMembers;
|
|
|
|
|
maxCastMembers.dispatchEvent(new Event('change', {
|
|
|
|
|
bubbles: true,
|
|
|
|
|
cancelable: false
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
Dashboard.hideLoadingMsg();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
@ -44,6 +64,7 @@
|
|
|
|
|
config.IncludeAdult = document.querySelector('#includeAdult').checked;
|
|
|
|
|
config.ExcludeTagsSeries = document.querySelector('#excludeTagsSeries').checked;
|
|
|
|
|
config.ExcludeTagsMovies = document.querySelector('#excludeTagsMovies').checked;
|
|
|
|
|
config.MaxCastMembers = document.querySelector('#maxCastMembers').value;
|
|
|
|
|
ApiClient.updatePluginConfiguration(PluginConfig.pluginId, config).then(Dashboard.processPluginConfigurationUpdateResult);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|