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

Rafaël Carré git at videolan.org
Thu Mar 22 14:57:14 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Mar 22 09:56:45 2012 -0400| [488f94b14be6564b96eba3a59ad0d404fd287f8d] | committer: Rafaël Carré

luahttp: bump API and document /art changes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=488f94b14be6564b96eba3a59ad0d404fd287f8d
---

 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 95996cc..1e66796 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -437,7 +437,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