imdb: align timeouts; use neutrino defaults

Origin commit data
------------------
Branch: ni/coolstream
Commit: 89a6db5416
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2017-03-06 09:07:38 +01:00
parent 440f72d606
commit cbe658d192

View File

@@ -228,7 +228,7 @@ std::string CIMDB::googleIMDb(std::string searchStr)
std::string url = surl + "IMDb+" + utf82url(httpString); 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()); 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; 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); initMap(m);
@@ -299,7 +299,7 @@ int CIMDB::getIMDb(const std::string& epgTitle)
//download Poster //download Poster
if(m["Poster"] != "N/A") if(m["Poster"] != "N/A")
{ {
if(httpTool.downloadFile(m["Poster"], posterfile.c_str())) if (httpTool.downloadFile(m["Poster"], posterfile.c_str()))
return 2; return 2;
else { else {
if (access(posterfile.c_str(), F_OK) == 0) if (access(posterfile.c_str(), F_OK) == 0)