From f72251dbb593a4cac0733d6f1ac500ec3d76e12d Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 9 Sep 2018 13:06:04 +0200 Subject: [PATCH] adding alternative logo for webchannels Signed-off-by: Thilo Graf --- src/zapit/include/zapit/channel.h | 3 +++ src/zapit/src/channel.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/src/zapit/include/zapit/channel.h b/src/zapit/include/zapit/channel.h index ba601e27c..9a8fe2c1e 100644 --- a/src/zapit/include/zapit/channel.h +++ b/src/zapit/include/zapit/channel.h @@ -130,6 +130,7 @@ class CZapitChannel /* WebTV/WebRadio */ std::string url; std::string desc; + std::string altlogo; /* pids of this channel */ std::vector channelSubs; @@ -293,6 +294,8 @@ class CZapitChannel bool Locked() { return (bLocked || !!bLockCount); } t_channel_id getEpgID(void) const { return epg_id; } void setEPGid(t_channel_id pEPGid) { epg_id = pEPGid; } //remap epg_id + std::string getAlternateLogo(void) const { return altlogo; } + inline void setAlternateLogo(const std::string &pLogo) { altlogo = pLogo; } }; struct CmpChannelBySat: public std::binary_function diff --git a/src/zapit/src/channel.cpp b/src/zapit/src/channel.cpp index b36242c74..8fcfc64dd 100644 --- a/src/zapit/src/channel.cpp +++ b/src/zapit/src/channel.cpp @@ -109,6 +109,7 @@ void CZapitChannel::Init() bLockCount = 0; bLocked = DEFAULT_CH_LOCKED; bUseCI = false; + altlogo = ""; } CZapitChannel::~CZapitChannel(void)