add cmdline option to load xmltv epg

Origin commit data
------------------
Branch: ni/coolstream
Commit: 14e532ad76
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
This commit is contained in:
TangoCash
2024-06-05 08:36:43 +02:00
committed by vanhofen
parent 70fcf212ff
commit 7cc5c77eb1

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