add option to read (online) xmltv epg

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
TangoCash
2018-08-31 20:49:47 +02:00
committed by Thilo Graf
parent 04f1219a1e
commit a9bb08df0d
6 changed files with 193 additions and 2 deletions

View File

@@ -67,6 +67,8 @@ struct sectionsd
setConfig, // commandSetConfig
readSIfromIPTVXML, // commandReadSIfromIPTVXML
numberOfCommands // <- no actual command, end of command marker
};

View File

@@ -194,6 +194,14 @@ void CSectionsdClient::readSIfromXML(const char * epgxmlname)
close_connection();
}
void CSectionsdClient::readSIfromIPTVXML(const char * url)
{
send(sectionsd::readSIfromIPTVXML, (char*) url, strlen(url));
readResponse();
close_connection();
}
void CSectionsdClient::writeSI2XML(const char * epgxmlname)
{
send(sectionsd::writeSI2XML, (char*) epgxmlname, strlen(epgxmlname));

View File

@@ -200,6 +200,8 @@ class CSectionsdClient : private CBasicClient
void readSIfromXML(const char * epgxmlname);
void readSIfromIPTVXML(const char * url);
void writeSI2XML(const char * epgxmlname);
/*