diff options
| author | louis <louis.braun@gmx.de> | 2013-08-24 16:33:57 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2013-08-24 16:33:57 +0200 |
| commit | d11d4ed78e2c83bc98c00c39b9d601a8694698a7 (patch) | |
| tree | 8553bc8c1077c8bcfd4a56c641af729738c0cda0 /themoviedbscraper | |
| parent | 5298f2c8051fe6ff231bf2bed2edee1086d445e0 (diff) | |
| download | vdr-plugin-tvscraper-d11d4ed78e2c83bc98c00c39b9d601a8694698a7.tar.gz vdr-plugin-tvscraper-d11d4ed78e2c83bc98c00c39b9d601a8694698a7.tar.bz2 | |
added debug messages
Diffstat (limited to 'themoviedbscraper')
| -rw-r--r-- | themoviedbscraper/themoviedbscraper.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)) {
|
