Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
1cbee971
Commit
1cbee971
authored
Sep 25, 2011
by
Rob Jonson
Committed by
Rémi Denis-Courmont
Sep 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update browse.xml to support uri as preferred param
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
c854652c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
share/lua/http/requests/README.txt
share/lua/http/requests/README.txt
+5
-0
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+8
-1
No files found.
share/lua/http/requests/README.txt
View file @
1cbee971
...
@@ -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
...
...
share/lua/intf/modules/httprequests.lua
View file @
1cbee971
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment