Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
browse.xml:
===========
+
+< ?dir=<uri>
+> get file list from uri. At the moment, only local file uris are supported
+
+NB: uri is the preferred parameter. Dir is deprecated and may be removed in a future release.
< ?dir=<dir>
> get <dir>'s filelist
getbrowsetable = function ()
- local dir = _GET["dir"]
+ local dir = nil
+ local uri = _GET["uri"]
+ --uri takes precedence, but fall back to dir
+ if uri then
+ dir = vlc.strings.make_path(uri)
+ else
+ dir = _GET["dir"]
+ end
local result={}
--paths are returned as an array of elements