mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-18 02:43:37 +02:00
add epg mapping too xml and e2 lists
Origin commit data
------------------
Commit: 2b4590db7b
Author: TangoCash <eric@loxat.de>
Date: 2020-07-01 (Wed, 01 Jul 2020)
This commit is contained in:
@@ -3057,7 +3057,7 @@ TIMER_STOP("################################## after all #######################
|
||||
CFlashUpdateCheck::getInstance()->startThread();
|
||||
}
|
||||
|
||||
for (std::list<std::string>::iterator it = g_settings.xmltv_xml.begin(); it != g_settings.xmltv_xml.end(); ++it)
|
||||
for (std::list<std::string>::iterator it = g_settings.xmltv_xml.begin(); it != g_settings.xmltv_xml.end(); it++)
|
||||
g_Sectionsd->readSIfromXMLTV((*it).c_str());
|
||||
|
||||
RealRun();
|
||||
|
@@ -471,7 +471,7 @@ void CBouquetManager::parseBouquetsXml(const char *fname, bool bUser)
|
||||
chan->pname = (char *) newBouquet->Name.c_str();
|
||||
chan->bLocked = clock;
|
||||
chan->bUseCI = newBouquet->bUseCI;
|
||||
//remapinng epg_id
|
||||
//remapping epg_id
|
||||
t_channel_id new_epgid = reMapEpgID(chan->getChannelID());
|
||||
if(new_epgid)
|
||||
chan->setEPGid(new_epgid);
|
||||
@@ -961,6 +961,16 @@ void CBouquetManager::loadWebchannels(int mode)
|
||||
CZapitChannel * channel = new CZapitChannel(title, chid, url, desc, epg_id, script, mode);
|
||||
CServiceManager::getInstance()->AddChannel(channel);
|
||||
channel->flags = CZapitChannel::UPDATED;
|
||||
//remapping epg_id
|
||||
t_channel_id new_epgid = reMapEpgID(chid);
|
||||
if(new_epgid)
|
||||
channel->setEPGid(new_epgid);
|
||||
std::string new_epgxml = reMapEpgXML(chid);
|
||||
if(!new_epgxml.empty()) {
|
||||
char buf[100];
|
||||
snprintf(buf, sizeof(buf), "%llx", chid & 0xFFFFFFFFFFFFULL);
|
||||
channel->setScriptName("#" + new_epgxml + "=" + buf);
|
||||
}
|
||||
if (gbouquet)
|
||||
gbouquet->addService(channel);
|
||||
}
|
||||
@@ -1062,7 +1072,7 @@ void CBouquetManager::loadWebchannels(int mode)
|
||||
}
|
||||
CZapitChannel * channel = new CZapitChannel(title.c_str(), chid, url, desc.c_str(), chid, epg_script.c_str(), mode);
|
||||
CServiceManager::getInstance()->AddChannel(channel);
|
||||
//remapinng epg_id
|
||||
//remapping epg_id
|
||||
t_channel_id new_epgid = reMapEpgID(chid);
|
||||
if(new_epgid)
|
||||
channel->setEPGid(new_epgid);
|
||||
@@ -1172,6 +1182,16 @@ void CBouquetManager::loadWebchannels(int mode)
|
||||
CZapitChannel * channel = new CZapitChannel(title.c_str(), chid, ::decodeUrl(url).c_str(), desc.c_str(), epg_id, NULL, mode);
|
||||
CServiceManager::getInstance()->AddChannel(channel);
|
||||
channel->flags = CZapitChannel::UPDATED;
|
||||
//remapping epg_id
|
||||
t_channel_id new_epgid = reMapEpgID(chid);
|
||||
if(new_epgid)
|
||||
channel->setEPGid(new_epgid);
|
||||
std::string new_epgxml = reMapEpgXML(chid);
|
||||
if(!new_epgxml.empty()) {
|
||||
char buf[100];
|
||||
snprintf(buf, sizeof(buf), "%llx", chid & 0xFFFFFFFFFFFFULL);
|
||||
channel->setScriptName("#" + new_epgxml + "=" + buf);
|
||||
}
|
||||
if (gbouquet)
|
||||
gbouquet->addService(channel);
|
||||
}
|
||||
|
Reference in New Issue
Block a user