diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-03-08 17:06:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-08 17:06:22 -0400 |
| commit | 623c0b6daa4c1486c336e0f7885c10e666c2f1fe (patch) | |
| tree | c888da79a32142901fcb7ba7d5da9c8ff6d5a025 /MediaBrowser.Providers/Plugins/AudioDb/Configuration/config.html | |
| parent | d8d37671ff0a009a106320c20851c78f5c666747 (diff) | |
| parent | f8b391538d9283879e962e0dbffed12dc6024a7d (diff) | |
Merge pull request #2536 from dkanada/audiodbv10.5.0
Migrate AudioDB to use plugin interface
Diffstat (limited to 'MediaBrowser.Providers/Plugins/AudioDb/Configuration/config.html')
| -rw-r--r-- | MediaBrowser.Providers/Plugins/AudioDb/Configuration/config.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/MediaBrowser.Providers/Plugins/AudioDb/Configuration/config.html b/MediaBrowser.Providers/Plugins/AudioDb/Configuration/config.html new file mode 100644 index 000000000..34494644d --- /dev/null +++ b/MediaBrowser.Providers/Plugins/AudioDb/Configuration/config.html @@ -0,0 +1,57 @@ +<!DOCTYPE html> +<html> +<head> + <title>AudioDB</title> +</head> +<body> + <div data-role="page" class="page type-interior pluginConfigurationPage configPage" data-require="emby-input,emby-button,emby-checkbox"> + <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> + </label> + <br /> + <div> + <button is="emby-button" type="submit" class="raised button-submit block"><span>Save</span></button> + </div> + </form> + </div> + </div> + <script type="text/javascript"> + var PluginConfig = { + pluginId: "a629c0da-fac5-4c7e-931a-7174223f14c8" + }; + + $('.configPage').on('pageshow', function () { + Dashboard.showLoadingMsg(); + ApiClient.getPluginConfiguration(PluginConfig.pluginId).then(function (config) { + $('#enable').checked(config.Enable); + $('#replaceAlbumName').checked(config.ReplaceAlbumName); + + Dashboard.hideLoadingMsg(); + }); + }); + + $('.configForm').on('submit', function (e) { + Dashboard.showLoadingMsg(); + + 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); + }); + + return false; + }); + </script> + </div> +</body> +</html> |
