mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
set download logo timeout to 1 sec
This commit is contained in:
@@ -1620,7 +1620,7 @@ std::string downloadUrlToRandomFile(std::string url, std::string directory, unsi
|
|||||||
if (strstr(url.c_str(), "://"))
|
if (strstr(url.c_str(), "://"))
|
||||||
{
|
{
|
||||||
std::string file = randomFile(url.substr(url.find_last_of(".") + 1), directory, length);
|
std::string file = randomFile(url.substr(url.find_last_of(".") + 1), directory, length);
|
||||||
if (downloadUrl(url, file))
|
if (downloadUrl(url, file, " ", 1))
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
return url;
|
return url;
|
||||||
@@ -1642,7 +1642,7 @@ std::string downloadUrlToLogo(std::string url, std::string directory, t_channel_
|
|||||||
std::string file = directory + "/" + strChnId + url.substr(url.find_last_of("."));
|
std::string file = directory + "/" + strChnId + url.substr(url.find_last_of("."));
|
||||||
if (file_exists(file))
|
if (file_exists(file))
|
||||||
return file;
|
return file;
|
||||||
if (downloadUrl(url, file))
|
if (downloadUrl(url, file, " ", 1))
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
return url;
|
return url;
|
||||||
|
Reference in New Issue
Block a user