mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +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
------------------
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 is contained in:
@@ -659,13 +659,14 @@ bool CPictureViewer::GetLogoName(const uint64_t& channel_id, const std::string&
|
||||
}
|
||||
}
|
||||
|
||||
if (cc) {
|
||||
if (cc)
|
||||
{
|
||||
if (!cc->getAlternateLogo().empty())
|
||||
{
|
||||
std::string lname = dlTmpName(cc->getAlternateLogo());
|
||||
name = lname;
|
||||
if(width && height)
|
||||
std::string lname = downloadUrlToRandomFile(cc->getAlternateLogo(), LOGODIR_TMP);
|
||||
if (width && height)
|
||||
getSize(lname.c_str(), width, height);
|
||||
name = lname;
|
||||
cc->setAlternateLogo(lname);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user