adding alternative logo for webchannels

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
TangoCash
2018-09-09 13:06:04 +02:00
committed by Thilo Graf
parent 4a54ad82ca
commit f72251dbb5
2 changed files with 4 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ class CZapitChannel
/* WebTV/WebRadio */ /* WebTV/WebRadio */
std::string url; std::string url;
std::string desc; std::string desc;
std::string altlogo;
/* pids of this channel */ /* pids of this channel */
std::vector <CZapitAbsSub* > channelSubs; std::vector <CZapitAbsSub* > channelSubs;
@@ -293,6 +294,8 @@ class CZapitChannel
bool Locked() { return (bLocked || !!bLockCount); } bool Locked() { return (bLocked || !!bLockCount); }
t_channel_id getEpgID(void) const { return epg_id; } t_channel_id getEpgID(void) const { return epg_id; }
void setEPGid(t_channel_id pEPGid) { epg_id = pEPGid; } //remap 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 <const CZapitChannel * const, const CZapitChannel * const, bool> struct CmpChannelBySat: public std::binary_function <const CZapitChannel * const, const CZapitChannel * const, bool>

View File

@@ -109,6 +109,7 @@ void CZapitChannel::Init()
bLockCount = 0; bLockCount = 0;
bLocked = DEFAULT_CH_LOCKED; bLocked = DEFAULT_CH_LOCKED;
bUseCI = false; bUseCI = false;
altlogo = "";
} }
CZapitChannel::~CZapitChannel(void) CZapitChannel::~CZapitChannel(void)