summaryrefslogtreecommitdiff
path: root/scraper/themoviedbscraper/themoviedbscraper.c
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/themoviedbscraper/themoviedbscraper.c')
-rw-r--r--scraper/themoviedbscraper/themoviedbscraper.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/scraper/themoviedbscraper/themoviedbscraper.c b/scraper/themoviedbscraper/themoviedbscraper.c
index 62263a9..b18782a 100644
--- a/scraper/themoviedbscraper/themoviedbscraper.c
+++ b/scraper/themoviedbscraper/themoviedbscraper.c
@@ -9,17 +9,19 @@
#include "../../lib/curl.h"
#include "../../tools/stringhelpers.h"
+#include "../../epgdconfig.h"
#include "themoviedbscraper.h"
using namespace std;
-cMovieDBScraper::cMovieDBScraper(string language) {
- apiKey = "abb01b5a277b9c2c60ec0302d83c5ee9";
- this->language = language;
- baseURL = "api.themoviedb.org/3";
- posterSize = "w500";
- backdropSize = "w1280";
- actorthumbSize = "h632";
+cMovieDBScraper::cMovieDBScraper(string language)
+{
+ apiKey = EpgdConfig.scrapMovieDbApiKey; // "abb01b5a277b9c2c60ec0302d83c5ee9";
+ this->language = language;
+ baseURL = "api.themoviedb.org/3";
+ posterSize = "w500";
+ backdropSize = "w1280";
+ actorthumbSize = "h632";
}
cMovieDBScraper::~cMovieDBScraper() {
@@ -55,7 +57,7 @@ bool cMovieDBScraper::parseJSON(string jsonString) {
if(!json_is_object(images)) {
return false;
}
-
+
json_t *imgUrl;
imgUrl = json_object_get(images, "base_url");
if(!json_is_string(imgUrl)) {