From d11d4ed78e2c83bc98c00c39b9d601a8694698a7 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 24 Aug 2013 16:33:57 +0200 Subject: added debug messages --- themoviedbscraper/themoviedbscraper.c | 2 ++ thetvdbscraper/thetvdbscraper.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/themoviedbscraper/themoviedbscraper.c b/themoviedbscraper/themoviedbscraper.c index 42be9c7..8e33779 100644 --- a/themoviedbscraper/themoviedbscraper.c +++ b/themoviedbscraper/themoviedbscraper.c @@ -98,6 +98,8 @@ int cMovieDBScraper::SearchMovie(string movieName) { movieEscaped << "\"" << movieName << "\""; stringstream url; url << baseURL << "/search/movie?api_key=" << apiKey << "&query=" << CurlEscape(movieEscaped.str().c_str()) << "&language=" << language.c_str(); + if (config.enableDebug) + esyslog("tvscraper: calling %s", url.str().c_str()); string movieJSON; int movieID = -1; if (CurlGetUrl(url.str().c_str(), &movieJSON)) { diff --git a/thetvdbscraper/thetvdbscraper.c b/thetvdbscraper/thetvdbscraper.c index c0ab68b..040baf6 100644 --- a/thetvdbscraper/thetvdbscraper.c +++ b/thetvdbscraper/thetvdbscraper.c @@ -78,6 +78,8 @@ cTVDBSeries *cTVDBScraper::ReadSeries(string seriesName) { url << mirrors->GetMirrorXML() << "/api/GetSeries.php?seriesname=" << CurlEscape(seriesEscape.str().c_str()) << "&language=" << language.c_str(); string seriesXML; cTVDBSeries *series = NULL; + if (config.enableDebug) + esyslog("tvscraper: calling %s", url.str().c_str()); if (CurlGetUrl(url.str().c_str(), &seriesXML)) { series = new cTVDBSeries(seriesXML); series->ParseXML(); -- cgit v1.2.3