summaryrefslogtreecommitdiff
path: root/bin/jsonapi.php
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-17 18:49:28 +0100
committerAlib <aliboba@free.fr>2010-03-17 18:49:28 +0100
commit6d3e8f33022129106ace66b97407bd66c02205c4 (patch)
tree9e296856ae639511d4f78854c9792562e8de1a01 /bin/jsonapi.php
parentcd92ba6737c54eb2e3dcf3e617783203d27bbc0b (diff)
parentecc23e50206d248f379fa8346561d3d6e11803fb (diff)
downloadistreamdev-6d3e8f33022129106ace66b97407bd66c02205c4.tar.gz
istreamdev-6d3e8f33022129106ace66b97407bd66c02205c4.tar.bz2
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-xbin/jsonapi.php13
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();