summaryrefslogtreecommitdiff
path: root/bin/jsonapi.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-xbin/jsonapi.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php
index dcc3dd4..eba9725 100755
--- a/bin/jsonapi.php
+++ b/bin/jsonapi.php
@@ -7,8 +7,8 @@ function getGlobals()
$ret = array();
$ret['streamdev_server'] = $vdrstreamdev;
$ret['rec_path'] = $vdrrecpath;
- $ret['video_path'] = "/mnt/media/Video/";
- $ret['audio_path'] = "/mnt/media/Music/";
+ $ret['video_path'] = "/home/storage/Foot/";
+ $ret['audio_path'] = "/home/www/mp3/";
return json_encode($ret);
}
@@ -113,5 +113,12 @@ function getRunningSessions()
}
+function browseFolder($path)
+{
+ $ret = array();
+ $ret['list'] = filesgetlisting($path);
+
+ return json_encode($ret);
+}
?>