From cbe658d192fa2c82b474a944c92a08d2a0845866 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 6 Mar 2017 09:07:38 +0100 Subject: [PATCH] imdb: align timeouts; use neutrino defaults Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/89a6db541603191eba3fbc704123bb5a2b46cc4d Author: vanhofen Date: 2017-03-06 (Mon, 06 Mar 2017) Origin message was: ------------------ - imdb: align timeouts; use neutrino defaults ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/imdb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/imdb.cpp b/src/gui/imdb.cpp index 2eefffeb3..3db2d77de 100644 --- a/src/gui/imdb.cpp +++ b/src/gui/imdb.cpp @@ -228,7 +228,7 @@ std::string CIMDB::googleIMDb(std::string searchStr) std::string url = surl + "IMDb+" + utf82url(httpString); - if(httpTool.downloadFile(url, soutfile.c_str())) + if (httpTool.downloadFile(url, soutfile.c_str())) { ret = parseFile("http://www.imdb.com/title/", ">", soutfile.c_str()); @@ -284,7 +284,7 @@ int CIMDB::getIMDb(const std::string& epgTitle) std::string url = IMDburl + imdb_ID; - if(httpTool.downloadFile(url, IMDbAPI.c_str(), -1, /*connecttimeout*/2, /*timeout*/5)) + if (httpTool.downloadFile(url, IMDbAPI.c_str())) { initMap(m); @@ -299,7 +299,7 @@ int CIMDB::getIMDb(const std::string& epgTitle) //download Poster if(m["Poster"] != "N/A") { - if(httpTool.downloadFile(m["Poster"], posterfile.c_str())) + if (httpTool.downloadFile(m["Poster"], posterfile.c_str())) return 2; else { if (access(posterfile.c_str(), F_OK) == 0)