]> git.sesse.net Git - vlc/commit
lua http: update browse command in lua http interface.
authorRob Jonson <rob@hobbyistsoftware.com>
Mon, 19 Sep 2011 14:37:58 +0000 (15:37 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 24 Sep 2011 22:14:47 +0000 (00:14 +0200)
commit32d59336f5e76ab6cafdf83c087a26a74e78a23f
treeffb644c4d311d502268cd2361f5c97b565b351e1
parent32a7f895d20ffbd4a2e598fda147d8cf6e7484e2
lua http: update browse command in lua http interface.

Refactor browse command to draw data from central model in httprequests.lua
add proper URI created by VLC's make_uri command to attributes in the browse data.
(this means that clients can simply use the correct URI for browse,open,enqueue commands,
rather than trying to convert paths to URI) accept file uri as input for browse command
(so that clients can completely ignore the path attribute) browse.xml displays data from
the model (fully backward compatible) browse.json provides alternative view of the same data
share/lua/http/requests/browse.xml
share/lua/intf/modules/httprequests.lua