From 28a8d7c63063b936289a3ffc24d6095ca3539c0a Mon Sep 17 00:00:00 2001 From: TangoCash Date: Thu, 2 Jul 2020 15:35:46 +0200 Subject: [PATCH] fix epg injection for xml and e2 tv --- src/zapit/src/bouquets.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/bouquets.cpp b/src/zapit/src/bouquets.cpp index 7b75ed442..22501b54d 100644 --- a/src/zapit/src/bouquets.cpp +++ b/src/zapit/src/bouquets.cpp @@ -958,6 +958,7 @@ void CBouquetManager::loadWebchannels(int mode) if (title && url) { t_channel_id chid = create_channel_id64(0, 0, 0, 0, 0, url); + if (epg_id == 0) epg_id = chid; CZapitChannel * channel = new CZapitChannel(title, chid, url, desc, epg_id, script, mode); CServiceManager::getInstance()->AddChannel(channel); channel->flags = CZapitChannel::UPDATED; @@ -970,6 +971,7 @@ void CBouquetManager::loadWebchannels(int mode) char buf[100]; snprintf(buf, sizeof(buf), "%llx", chid & 0xFFFFFFFFFFFFULL); channel->setScriptName("#" + new_epgxml + "=" + buf); + channel->setEPGid(chid); } if (gbouquet) gbouquet->addService(channel); @@ -1179,7 +1181,7 @@ void CBouquetManager::loadWebchannels(int mode) if (!url.empty()) { t_channel_id chid = create_channel_id64(0, 0, 0, 0, 0, ::decodeUrl(url).c_str()); - CZapitChannel * channel = new CZapitChannel(title.c_str(), chid, ::decodeUrl(url).c_str(), desc.c_str(), epg_id, NULL, mode); + CZapitChannel * channel = new CZapitChannel(title.c_str(), chid, ::decodeUrl(url).c_str(), desc.c_str(), chid, NULL, mode); CServiceManager::getInstance()->AddChannel(channel); channel->flags = CZapitChannel::UPDATED; //remapping epg_id