mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user