[vlc-commits] luahttp: bump API and document /art changes

Rafaël Carré git at videolan.org
Sun Apr 1 21:23:54 CEST 2012


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Thu Mar 22 09:56:45 2012 -0400| [296c59ab67aa9c56f32b0c6f2f081c3dd01f3b9f] | committer: Jean-Baptiste Kempf

luahttp: bump API and document /art changes
(cherry picked from commit 488f94b14be6564b96eba3a59ad0d404fd287f8d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=296c59ab67aa9c56f32b0c6f2f081c3dd01f3b9f
---

 share/lua/http/requests/README.txt      |   10 ++++++++++
 share/lua/intf/modules/httprequests.lua |    2 +-
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/share/lua/http/requests/README.txt b/share/lua/http/requests/README.txt
index 95d1f4e..6250816 100644
--- a/share/lua/http/requests/README.txt
+++ b/share/lua/http/requests/README.txt
@@ -22,6 +22,16 @@ where path attributes are provided in output, these should be ignored in favour
 path support is scheduled to be removed entirely from 1.3
 ---
 
+<root> (/)
+===========
+
+
+> Get album art for current input:
+  /art  (NB: not /requests/art)
+
+> Get album art for any playlist input (available from API version 3):
+  /art?item=123  (NB: not /requests/art)
+
 
 status.xml or status.json
 ===========
diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index 611be44..1e53270 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -432,7 +432,7 @@ local aout = vlc.object.aout()
     local s ={}
 
     --update api version when new data/commands added
-    s.apiversion=2
+    s.apiversion=3
     s.version=vlc.misc.version()
     s.volume=vlc.volume.get()
 



More information about the vlc-commits mailing list