mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
set download logo timeout to 1 sec
Origin commit data
------------------
Commit: 24df0c1405
Author: TangoCash <eric@loxat.de>
Date: 2020-11-15 (Sun, 15 Nov 2020)
This commit is contained in:
@@ -1807,7 +1807,7 @@ std::string downloadUrlToRandomFile(std::string url, std::string directory, unsi
|
||||
if (strstr(url.c_str(), "://"))
|
||||
{
|
||||
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 url;
|
||||
@@ -1829,7 +1829,7 @@ std::string downloadUrlToLogo(std::string url, std::string directory, t_channel_
|
||||
std::string file = directory + "/" + strChnId + url.substr(url.find_last_of("."));
|
||||
if (file_exists(file))
|
||||
return file;
|
||||
if (downloadUrl(url, file))
|
||||
if (downloadUrl(url, file, " ", 1))
|
||||
return file;
|
||||
}
|
||||
return url;
|
||||
|
Reference in New Issue
Block a user