From 50c89b73b4f8e3e4b86dcac9865ee96931c7a9b4 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 24 Mar 2010 17:40:22 +0100 Subject: Added getepg and getepginfo --- bin/jsonapi.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bin/jsonapi.php') 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); +} + ?> -- cgit v1.2.3