CIMDB: load api key from settings

This commit is contained in:
2018-04-27 15:57:27 +02:00
parent 33c0b544db
commit 9be6a12241

View File

@@ -47,7 +47,8 @@ CIMDB::CIMDB()
search_error = "IMDb: Google download failed";
imdb_url = "http://www.omdbapi.com/?plot=full&r=json&i=";
imdb_outfile = "/tmp/imdb.json";
omdb_apikey = "";
omdb_apikey = "&apikey=";
omdb_apikey += g_settings.imdb_api_key;
posterfile = "/tmp/imdb.jpg";
acc = 0;