diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-24 17:40:22 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-24 17:40:22 +0100 |
commit | 50c89b73b4f8e3e4b86dcac9865ee96931c7a9b4 (patch) | |
tree | c0c62ffc767fb791eb57f173a4ade020dd80951a /bin/jsonapi.php | |
parent | 9a1a60cd639222e20564eef754d69abfdc761e20 (diff) | |
download | istreamdev-50c89b73b4f8e3e4b86dcac9865ee96931c7a9b4.tar.gz istreamdev-50c89b73b4f8e3e4b86dcac9865ee96931c7a9b4.tar.bz2 |
Added getepg and getepginfo
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); +} + ?> |