diff --git a/lib/sectionsdclient/sectionsdcontrol.cpp b/lib/sectionsdclient/sectionsdcontrol.cpp index 8ebb92f05..7c90f6bc2 100644 --- a/lib/sectionsdclient/sectionsdcontrol.cpp +++ b/lib/sectionsdclient/sectionsdcontrol.cpp @@ -62,10 +62,19 @@ int main(int argc, char **argv) { char path[255]; sprintf(path, "%s/", argv[i + 1]); - printf("Reading epg cache from %s....\n", path); + printf("Reading epg cache from %s...\n", path); client.readSIfromXML(path); } } + else if (!strcmp(argv[i], "--readxmltvepg")) { + if (argv[i+1]) + { + char url[255]; + sprintf(url, "%s", argv[i+1]); + printf("Reading xmltv epg from %s...\n", url); + client.readSIfromXMLTV(url); + } + } else if (!strcmp(argv[i], "--dump")) { client.dumpStatus();