- bouquets: allow xmltv directly from webtv xml file

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-09-13 00:28:14 +02:00
committed by Thilo Graf
parent ced577eb7a
commit 830d10ece3
4 changed files with 38 additions and 8 deletions

View File

@@ -242,13 +242,35 @@ public:
void g_settings_video_Mode(int value) { g_settings.video_Mode = value; }
void g_settings_xmltv_xml_m3u_clear() { g_settings.xmltv_xml_m3u.clear(); }
void g_settings_xmltv_xml_m3u_pushback(std::string _epg_url) {g_settings.xmltv_xml_m3u.push_back(_epg_url); }
void xmltv_xml_readepg() { 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()); }
void xmltv_xml_m3u_readepg() { for (std::list<std::string>::iterator it = g_settings.xmltv_xml_m3u.begin(); it != g_settings.xmltv_xml_m3u.end(); it++)
g_Sectionsd->readSIfromXMLTV((*it).c_str()); }
void g_settings_xmltv_xml_auto_clear()
{
g_settings.xmltv_xml_auto.clear();
}
void g_settings_xmltv_xml_auto_pushback(std::string _xmltv_url)
{
if (find(g_settings.xmltv_xml_auto.begin(), g_settings.xmltv_xml_auto.end(), _xmltv_url) == g_settings.xmltv_xml_auto.end())
g_settings.xmltv_xml_auto.push_back(_xmltv_url);
}
void xmltv_xml_readepg()
{
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());
for (std::list<std::string>::iterator it = g_settings.xmltv_xml_auto.begin(); it != g_settings.xmltv_xml_auto.end(); it++)
g_Sectionsd->readSIfromXMLTV((*it).c_str());
}
void g_settings_xmltv_xml_m3u_clear()
{
g_settings.xmltv_xml_m3u.clear();
}
void g_settings_xmltv_xml_m3u_pushback(std::string _epg_url)
{
g_settings.xmltv_xml_m3u.push_back(_epg_url);
}
void xmltv_xml_m3u_readepg()
{
for (std::list<std::string>::iterator it = g_settings.xmltv_xml_m3u.begin(); it != g_settings.xmltv_xml_m3u.end(); it++)
g_Sectionsd->readSIfromXMLTV((*it).c_str());
}
};
#endif