mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
use alternative logo if present
Origin commit data
------------------
Commit: 477264a4c6
Author: TangoCash <eric@loxat.de>
Date: 2018-09-09 (Sun, 09 Sep 2018)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "pictureviewer.h"
|
||||
#include "pv_config.h"
|
||||
#include <system/debug.h>
|
||||
#include <system/helpers.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -580,6 +581,18 @@ bool CPictureViewer::GetLogoName(const uint64_t& channel_id, const std::string&
|
||||
return true;
|
||||
}
|
||||
}
|
||||
CZapitChannel * cc = NULL;
|
||||
if (CNeutrinoApp::getInstance()->channelList)
|
||||
cc = CNeutrinoApp::getInstance()->channelList->getChannel(channel_id);
|
||||
if (cc) {
|
||||
if (!cc->getAlternateLogo().empty())
|
||||
{
|
||||
std::string lname = dlTmpName(cc->getAlternateLogo());
|
||||
name = lname;
|
||||
cc->setAlternateLogo(lname);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user