mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
helpers: rework new random-functions to get the code more reuseable
* introduceand use LOGODIR_TMP (storage dir for webchannel logos)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2d3f66aa39
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-18 (Tue, 18 Sep 2018)
Origin message was:
------------------
- helpers: rework new random-functions to get the code more reuseable
* introduceand use LOGODIR_TMP (storage dir for webchannel logos)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -644,13 +644,14 @@ void *insertEventsfromXMLTV(void * data)
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
std::string url = (char *) data;
|
||||
std::string url_ext = getFileExt(url);
|
||||
std::string tmp_name = genTmpName(url_ext,8);
|
||||
std::string tmp_name = randomFile(getFileExt(url), "/tmp", 8);
|
||||
|
||||
int64_t now = time_monotonic_ms();
|
||||
|
||||
if (url.compare(0, 1, "/") == 0)
|
||||
{
|
||||
readEventsFromXMLTV(url, ev_count);
|
||||
}
|
||||
else if (::downloadUrl(url, tmp_name))
|
||||
{
|
||||
readEventsFromXMLTV(tmp_name, ev_count);
|
||||
|
Reference in New Issue
Block a user