From 7cc5c77eb11a7600dbe517057e9fb951f594c1f7 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 ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/14e532ad76adddaad160dfd3137068bf0667de9e 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 --- 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(); }