diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 18:41:16 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 18:41:16 +0100 |
commit | bba9118edf4b05670bf6ee46af6a569f7fd5650c (patch) | |
tree | ae143ef28f36496a619626aa5228e06a99268eb2 /bin/jsonapi.php | |
parent | 5a82ce8d05eb30148d8079aed01c503c73dd58d6 (diff) | |
download | istreamdev-bba9118edf4b05670bf6ee46af6a569f7fd5650c.tar.gz istreamdev-bba9118edf4b05670bf6ee46af6a569f7fd5650c.tar.bz2 |
Get recordings info
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-x | bin/jsonapi.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php index eba9725..372c063 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -58,12 +58,23 @@ function getChanInfo($channum) { $ret = array(); - $info = array(); $ret['program'] = vdrgetchaninfo($channum); return json_encode($ret); } +function getRecInfo($rec) +{ + $ret = array(); + + $info = array(); + list($info['channel'], $info['name'], $info['desc']) = vdrgetrecinfo($rec); + + $ret['program'] = $info; + + return json_encode($ret); +} + function startBroadcast($type, $url, $mode) { $ret = array(); |