Browse Source

update audiodb config page

dkanada 5 years ago
parent
commit
f8b391538d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      MediaBrowser.Providers/Plugins/AudioDb/Configuration/config.html

+ 3 - 1
MediaBrowser.Providers/Plugins/AudioDb/Configuration/config.html

@@ -13,7 +13,7 @@
                         <span>Enable this provider for metadata searches on artists and albums.</span>
                     </label>
                     <label class="checkboxContainer">
-                        <input is="emby-checkbox" type="checkbox" id="replaceArtistName" />
+                        <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>
                     </label>
                     <br />
@@ -32,6 +32,7 @@
                 Dashboard.showLoadingMsg();
                 ApiClient.getPluginConfiguration(PluginConfig.pluginId).then(function (config) {
                     $('#enable').checked(config.Enable);
+                    $('#replaceAlbumName').checked(config.ReplaceAlbumName);
 
                     Dashboard.hideLoadingMsg();
                 });
@@ -43,6 +44,7 @@
                 var form = this;
                 ApiClient.getPluginConfiguration(PluginConfig.pluginId).then(function (config) {
                     config.Enable = $('#enable', form).checked();
+                    config.ReplaceAlbumName = $('#replaceAlbumName', form).checked();
 
                     ApiClient.updatePluginConfiguration(PluginConfig.pluginId, config).then(Dashboard.processPluginConfigurationUpdateResult);
                 });