diff options
author | Alib <aliboba@free.fr> | 2010-03-23 20:03:48 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-23 20:03:48 +0100 |
commit | 5c1a035c35ab2f444b6fb67a475bc772d50edde2 (patch) | |
tree | f2f9a28ce9d55266eb2262fc48ab1cfd047f34b4 /bin | |
parent | 0962608e084f45b050e7ae75d0471f356f4302f7 (diff) | |
parent | 85b5a9f4c49db6dbbe282e9e8ab60fbc074d6a52 (diff) | |
download | istreamdev-5c1a035c35ab2f444b6fb67a475bc772d50edde2.tar.gz istreamdev-5c1a035c35ab2f444b6fb67a475bc772d50edde2.tar.bz2 |
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/jsonapi.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php index e825fec..a567808 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -2,24 +2,23 @@ function getGlobals() { - global $vdrstreamdev, $vdrrecpath, $mediasource, $videosource, $audiosource, $vdrenabled, $mediaenabled; + global $vdrstreamdev, $vdrrecpath, $mediasource, $videosource, $audiosource; + global $enablevdr, $enablemediavideo, $enablemediaaudio; $ret = array(); - if ($vdrenabled) + if ($enablevdr) $ret['streamdev_server'] = $vdrstreamdev; else $ret['streamdev_server'] = ""; $ret['rec_path'] = $vdrrecpath; - if ($mediaenabled) - { + if ($enablemediavideo) $ret['video_path'] = $videosource; - $ret['audio_path'] = $audiosource; - } else - { $ret['video_path'] = ""; + if ($enablemediaaudio) + $ret['audio_path'] = $audiosource; + else $ret['audio_path'] = ""; - } return json_encode($ret); } |