From 6bc6693985e25c7b0fae922807bc21f5df29b06e Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 15 Nov 2020 23:00:28 +0100 Subject: [PATCH] set download logo timeout to 1 sec Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/24df0c140544de265103da010ece586dce541955 Author: TangoCash Date: 2020-11-15 (Sun, 15 Nov 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/system/helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 5abb2b9bb..185ef38a3 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -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;