From f4512218b490467f5589f8246dddf6fa799c775e Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 9 Sep 2018 13:06:05 +0200 Subject: [PATCH] use alternative logo if present Signed-off-by: Thilo Graf --- src/driver/pictureviewer/pictureviewer.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/driver/pictureviewer/pictureviewer.cpp b/src/driver/pictureviewer/pictureviewer.cpp index 1afb445a4..412d9d9af 100644 --- a/src/driver/pictureviewer/pictureviewer.cpp +++ b/src/driver/pictureviewer/pictureviewer.cpp @@ -4,6 +4,7 @@ #include "pictureviewer.h" #include "pv_config.h" #include +#include #include #include #include @@ -579,7 +580,19 @@ bool CPictureViewer::GetLogoName(const uint64_t& channel_id, const std::string& name = v_path[j]; 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; }