|
|
|
@ -8,10 +8,6 @@
|
|
|
|
|
<div data-role="content">
|
|
|
|
|
<div class="content-primary">
|
|
|
|
|
<form class="configForm">
|
|
|
|
|
<label class="checkboxContainer">
|
|
|
|
|
<input is="emby-checkbox" type="checkbox" id="enable" />
|
|
|
|
|
<span>Enable this provider for metadata searches on artists and albums.</span>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="checkboxContainer">
|
|
|
|
|
<input is="emby-checkbox" type="checkbox" id="replaceAlbumName" />
|
|
|
|
|
<span>When an album is found during a metadata search, replace the name with the value on the server.</span>
|
|
|
|
@ -32,7 +28,6 @@
|
|
|
|
|
.addEventListener('pageshow', function () {
|
|
|
|
|
Dashboard.showLoadingMsg();
|
|
|
|
|
ApiClient.getPluginConfiguration(PluginConfig.pluginId).then(function (config) {
|
|
|
|
|
document.querySelector('#enable').checked = config.Enable;
|
|
|
|
|
document.querySelector('#replaceAlbumName').checked = config.ReplaceAlbumName;
|
|
|
|
|
|
|
|
|
|
Dashboard.hideLoadingMsg();
|
|
|
|
@ -44,7 +39,6 @@
|
|
|
|
|
Dashboard.showLoadingMsg();
|
|
|
|
|
|
|
|
|
|
ApiClient.getPluginConfiguration(PluginConfig.pluginId).then(function (config) {
|
|
|
|
|
config.Enable = document.querySelector('#enable').checked;
|
|
|
|
|
config.ReplaceAlbumName = document.querySelector('#replaceAlbumName').checked;
|
|
|
|
|
|
|
|
|
|
ApiClient.updatePluginConfiguration(PluginConfig.pluginId, config).then(Dashboard.processPluginConfigurationUpdateResult);
|
|
|
|
|