summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2014-07-07 23:33:18 -0300
committerVictor Toso <me@victortoso.com>2016-05-30 14:56:38 +0200
commit764b48c31a1fdb2cb470d639d74e192c9596db10 (patch)
tree4f155d8af8266dc84ec2e0f684f36d96fbd9e3eb /tools
parent2e28327919b5a38ed5957d8665d1b39f0f673ab1 (diff)
downloadgrilo-764b48c31a1fdb2cb470d639d74e192c9596db10.tar.gz
test-ui: Include api-key for AcoustID source
https://bugzilla.gnome.org/show_bug.cgi?id=732879
Diffstat (limited to 'tools')
-rw-r--r--tools/grilo-test-ui/main.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 33bfc68..ee988d3 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -70,6 +70,10 @@ GRL_LOG_DOMAIN_STATIC(test_ui_log_domain);
#define THETVDB_KEY "3F476CEF2FBD0FB0"
+/* ----- AcoustID key ---- */
+
+#define ACOUSTID_KEY "4ihkDsH37X"
+
/* ----- Other ----- */
#define BROWSE_FLAGS (GRL_RESOLVE_FAST_ONLY | GRL_RESOLVE_IDLE_RELAY)
@@ -1784,6 +1788,19 @@ set_thetvdb_config (void)
}
static void
+set_acoustid_config (void)
+{
+ GrlConfig *config;
+ GrlRegistry *registry;
+
+ config = grl_config_new ("grl-acoustid", NULL);
+ grl_config_set_api_key (config, ACOUSTID_KEY);
+
+ registry = grl_registry_get_default ();
+ grl_registry_add_config (registry, config, NULL);
+}
+
+static void
set_local_config (void)
{
GrlConfig *config;
@@ -2379,6 +2396,7 @@ configure_plugins (void)
set_vimeo_config ();
set_tmdb_config ();
set_thetvdb_config ();
+ set_acoustid_config ();
set_local_config ();
set_filesystem_config ();
}