From c0df7cd840f0a44c9c1c420c72c26d26c0cafebf Mon Sep 17 00:00:00 2001 From: BPanther Date: Sat, 13 Jul 2024 01:04:35 +0200 Subject: [PATCH] add cmdline option to load xmltv epg (thx TangoCash) --- lib/sectionsdclient/sectionsdcontrol.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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();