diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 8d66af892..744d4633a 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -3057,7 +3057,7 @@ TIMER_STOP("################################## after all ####################### CFlashUpdateCheck::getInstance()->startThread(); } - for (std::list::iterator it = g_settings.xmltv_xml.begin(); it != g_settings.xmltv_xml.end(); ++it) + for (std::list::iterator it = g_settings.xmltv_xml.begin(); it != g_settings.xmltv_xml.end(); it++) g_Sectionsd->readSIfromXMLTV((*it).c_str()); RealRun(); diff --git a/src/zapit/src/bouquets.cpp b/src/zapit/src/bouquets.cpp index 8e5fc009c..d3fbc40f6 100644 --- a/src/zapit/src/bouquets.cpp +++ b/src/zapit/src/bouquets.cpp @@ -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); }