add cmdline option to load xmltv epg

Origin commit data
------------------
Commit: b2ebab61c8
Author: TangoCash <eric@loxat.de>
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.
This commit is contained in:
TangoCash
2024-06-05 08:36:43 +02:00
committed by Thilo Graf
parent d4d6f634d2
commit df918a356f

View File

@@ -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();
}