From df918a356f3b8dc1f803ec6f4c5f85018693d704 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Wed, 5 Jun 2024 08:36:43 +0200 Subject: [PATCH] add cmdline option to load xmltv epg Origin commit data ------------------ Commit: https://github.com/TangoCash/neutrino-tangos/commit/b2ebab61c89864ef177fa9119e0899930fb16537 Author: TangoCash Date: 2024-06-05 (Wed, 05 Jun 2024) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit It would often be very helpful to know why a commit is there or what a particular change is good for, or why it is needed, without having to ask. --- lib/sectionsdclient/sectionsdcontrol.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/sectionsdclient/sectionsdcontrol.cpp b/lib/sectionsdclient/sectionsdcontrol.cpp index 505dd80f5..f6b338b63 100644 --- a/lib/sectionsdclient/sectionsdcontrol.cpp +++ b/lib/sectionsdclient/sectionsdcontrol.cpp @@ -67,6 +67,15 @@ int main(int argc, char** argv) } } 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(); }