diff options
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-x | bin/jsonapi.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php index a567808..298806b 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -188,4 +188,22 @@ function streamAudio($path, $file) } +function getEpg($channel, $time, $day, $programs) +{ + $ret = array(); + + $ret['channel'] = vdrgetepg($channel, $time, $day, $programs, 0); + + return json_encode($ret); +} + +function getEpgInfo($channel, $time, $day) +{ + $ret = array(); + + $ret['program'] = vdrgetepg($channel, $time, $day, 1, 1); + + return json_encode($ret); +} + ?> |