diff options
author | Jean Felder <jean.felder@estimages.com> | 2018-09-03 11:33:57 +0200 |
---|---|---|
committer | Jean Felder <jean.felder@estimages.com> | 2018-09-03 11:33:57 +0200 |
commit | 2570c5a3ec39a95a706ee2bd1e7eaa08b4259078 (patch) | |
tree | 3463deb4a5f92a0e28f98610deeda1a6d6edf41d | |
parent | f62f9cc51a3a3d024e739c4ced3c78876d5a2780 (diff) | |
download | grilo-2570c5a3ec39a95a706ee2bd1e7eaa08b4259078.tar.gz |
test-ui: Include api-key for The AudioDB source
-rw-r--r-- | 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 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) @@ -1861,6 +1865,19 @@ set_acoustid_config (void) } 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) { GrlConfig *config1, *config2; @@ -2437,6 +2454,7 @@ configure_plugins (void) set_tmdb_config (); set_thetvdb_config (); set_acoustid_config (); + set_theaudiodb_config (); set_filesystem_config (); } |