mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 10:51:12 +02:00
fix epg injection for xml and e2 tv
This commit is contained in:
@@ -958,6 +958,7 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
if (title && url)
|
if (title && url)
|
||||||
{
|
{
|
||||||
t_channel_id chid = create_channel_id64(0, 0, 0, 0, 0, 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);
|
CZapitChannel * channel = new CZapitChannel(title, chid, url, desc, epg_id, script, mode);
|
||||||
CServiceManager::getInstance()->AddChannel(channel);
|
CServiceManager::getInstance()->AddChannel(channel);
|
||||||
channel->flags = CZapitChannel::UPDATED;
|
channel->flags = CZapitChannel::UPDATED;
|
||||||
@@ -970,6 +971,7 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
char buf[100];
|
char buf[100];
|
||||||
snprintf(buf, sizeof(buf), "%llx", chid & 0xFFFFFFFFFFFFULL);
|
snprintf(buf, sizeof(buf), "%llx", chid & 0xFFFFFFFFFFFFULL);
|
||||||
channel->setScriptName("#" + new_epgxml + "=" + buf);
|
channel->setScriptName("#" + new_epgxml + "=" + buf);
|
||||||
|
channel->setEPGid(chid);
|
||||||
}
|
}
|
||||||
if (gbouquet)
|
if (gbouquet)
|
||||||
gbouquet->addService(channel);
|
gbouquet->addService(channel);
|
||||||
@@ -1179,7 +1181,7 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
if (!url.empty())
|
if (!url.empty())
|
||||||
{
|
{
|
||||||
t_channel_id chid = create_channel_id64(0, 0, 0, 0, 0, ::decodeUrl(url).c_str());
|
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);
|
CServiceManager::getInstance()->AddChannel(channel);
|
||||||
channel->flags = CZapitChannel::UPDATED;
|
channel->flags = CZapitChannel::UPDATED;
|
||||||
//remapping epg_id
|
//remapping epg_id
|
||||||
|
Reference in New Issue
Block a user