Commit 1cbee971 authored by Rob Jonson's avatar Rob Jonson Committed by Rémi Denis-Courmont

update browse.xml to support uri as preferred param

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent c854652c
...@@ -146,6 +146,11 @@ It may be removed without notice. ...@@ -146,6 +146,11 @@ It may be removed without notice.
browse.xml: 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> < ?dir=<dir>
> get <dir>'s filelist > get <dir>'s filelist
......
...@@ -356,7 +356,14 @@ end ...@@ -356,7 +356,14 @@ end
getbrowsetable = function () 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={} local result={}
--paths are returned as an array of elements --paths are returned as an array of elements
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment