Skip to content

Commit

Permalink
add cmdline option to load xmltv epg (thx TangoCash)
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Jul 12, 2024
1 parent bccc651 commit c0df7cd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/sectionsdclient/sectionsdcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c0df7cd

Please sign in to comment.