local epgmap overrides global epgmap for webtv,webradio

Origin commit data
------------------
Commit: 9289965ce4
Author: TangoCash <eric@loxat.de>
Date: 2021-09-13 (Mon, 13 Sep 2021)
This commit is contained in:
TangoCash
2021-09-13 17:37:15 +02:00
committed by vanhofen
parent c40fc9c43e
commit ee031b7d58

View File

@@ -972,23 +972,22 @@ void CBouquetManager::loadWebchannels(int mode)
t_channel_id new_epgid = reMapEpgID(chid);
if(new_epgid)
channel->setEPGid(new_epgid);
char buf[100];
snprintf(buf, sizeof(buf), "%llx", chid & 0xFFFFFFFFFFFFULL);
if (xmltv)
{
CNeutrinoApp::getInstance()->g_settings_xmltv_xml_auto_pushback(xmltv);
CNeutrinoApp::getInstance()->g_settings_xmltv_xml_auto_pushback(std::string(xmltv));
}
if (epgmap)
{
std::string new_epgxml(epgmap);
char buf[100];
snprintf(buf, sizeof(buf), "%llx", chid & 0xFFFFFFFFFFFFULL);
std::string new_epgxml = reMapEpgXML(chid);
if(!new_epgxml.empty()) {
channel->setEPGmap("#" + new_epgxml + "=" + buf);
}
else
// local epgmap overrides global epgmap
if (epgmap)
{
std::string new_epgxml = reMapEpgXML(chid);
if(!new_epgxml.empty()) {
channel->setEPGmap("#" + new_epgxml + "=" + buf);
}
std::string new_epgmap(epgmap);
if(!new_epgmap.empty())
channel->setEPGmap("#" + new_epgmap + "=" + buf);
}
channel->flags = CZapitChannel::UPDATED;
if (gbouquet)