[grilo] test-ui: Include api-key for AcoustID source
- From: Victor Toso de Carvalho <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] test-ui: Include api-key for AcoustID source
- Date: Mon, 30 May 2016 13:00:55 +0000 (UTC)
commit 764b48c31a1fdb2cb470d639d74e192c9596db10
Author: Victor Toso <me victortoso com>
Date: Mon Jul 7 23:33:18 2014 -0300
test-ui: Include api-key for AcoustID source
https://bugzilla.gnome.org/show_bug.cgi?id=732879
tools/grilo-test-ui/main.c | 18 ++++++++++++++++++
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 ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]