[grilo/wip/jfelder/test-ui-add-theaudiodb] test-ui: Include api-key for The AudioDB source
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/wip/jfelder/test-ui-add-theaudiodb] test-ui: Include api-key for The AudioDB source
- Date: Wed, 12 Sep 2018 11:55:25 +0000 (UTC)
commit 2570c5a3ec39a95a706ee2bd1e7eaa08b4259078
Author: Jean Felder <jean felder estimages com>
Date: Mon Sep 3 11:33:57 2018 +0200
test-ui: Include api-key for The AudioDB source
tools/grilo-test-ui/main.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 2bf15fc..fe51c02 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -74,6 +74,10 @@ GRL_LOG_DOMAIN_STATIC(test_ui_log_domain);
#define ACOUSTID_KEY "4ihkDsH37X"
+/* ----- The AudioDB key ---- */
+
+#define THEAUDIODB_KEY "1"
+
/* ----- Other ----- */
#define BROWSE_FLAGS (GRL_RESOLVE_FAST_ONLY | GRL_RESOLVE_IDLE_RELAY)
@@ -1860,6 +1864,19 @@ set_acoustid_config (void)
grl_registry_add_config (registry, config, NULL);
}
+static void
+set_theaudiodb_config (void)
+{
+ GrlConfig *config;
+ GrlRegistry *registry;
+
+ config = grl_config_new ("grl-theaudiodb-cover", NULL);
+ grl_config_set_api_key (config, THEAUDIODB_KEY);
+
+ registry = grl_registry_get_default ();
+ grl_registry_add_config (registry, config, NULL);
+}
+
static void
set_filesystem_config (void)
{
@@ -2437,6 +2454,7 @@ configure_plugins (void)
set_tmdb_config ();
set_thetvdb_config ();
set_acoustid_config ();
+ set_theaudiodb_config ();
set_filesystem_config ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]