add support for embedded epg-url in m3u

Origin commit data
------------------
Commit: 8a3dc3a6c4
Author: TangoCash <eric@loxat.de>
Date: 2021-09-09 (Thu, 09 Sep 2021)
This commit is contained in:
TangoCash
2021-09-09 18:27:57 +02:00
committed by vanhofen
parent 6b09f3909a
commit 1cf8211b75
6 changed files with 60 additions and 7 deletions

View File

@@ -968,6 +968,8 @@ int CNeutrinoApp::loadSetup(const char *fname)
}
}
g_settings.xmltv_xml_m3u.clear();
g_settings.livestreamResolution = configfile.getInt32("livestreamResolution", 1920);
g_settings.livestreamScriptPath = configfile.getString("livestreamScriptPath", WEBTVDIR);
@@ -3325,8 +3327,8 @@ TIMER_STOP("################################## after all #######################
CUpdateCheckPackages::getInstance()->startThread();
#endif
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());
xmltv_xml_readepg();
xmltv_xml_m3u_readepg();
RealRun();
ExitRun(g_info.hw_caps->can_shutdown);
@@ -4727,6 +4729,11 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
printf("CNeutrinoApp::handleMsg: Reading xmltv epg from %s ...\n", (*it).c_str());
g_Sectionsd->readSIfromXMLTV((*it).c_str());
}
for (std::list<std::string>::iterator it_tmp = g_settings.xmltv_xml_m3u.begin(); it_tmp != g_settings.xmltv_xml_m3u.end(); it_tmp++)
{
printf("CNeutrinoApp::handleMsg: Reading xmltv epg from %s ...\n", (*it_tmp).c_str());
g_Sectionsd->readSIfromXMLTV((*it_tmp).c_str());
}
return messages_return::handled;
}
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000)) {