From 5fe74b9be3aa1789dab380708401c5db46808b5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Sat, 18 Jun 2011 18:16:18 +0200 Subject: [PATCH] lua: remove debug printf and update the doc --- modules/lua/vlc.c | 2 -- share/lua/README.txt | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c index 5bdbe28b82..96e9a099fd 100644 --- a/modules/lua/vlc.c +++ b/modules/lua/vlc.c @@ -420,8 +420,6 @@ void __vlclua_read_custom_meta_data( vlc_object_t *p_this, lua_State *L, while( lua_next( L, -2 ) ) { /* ... item meta key value */ - printf("%s => %s\n", lua_typename(L, lua_type(L, -2)), - lua_typename(L, lua_type(L, -1))); if( !lua_isstring( L, -2 ) || !lua_isstring( L, -1 ) ) { msg_Err( p_this, "'meta' keys and values must be strings"); diff --git a/share/lua/README.txt b/share/lua/README.txt index 842c1c39d9..1e45f83d53 100644 --- a/share/lua/README.txt +++ b/share/lua/README.txt @@ -284,9 +284,8 @@ playlist.add( ... ): Add a bunch of items to the playlist. example: .options = { "fullscreen" } .duration: stream duration in seconds (OPTIONAL) .meta: custom meta data (OPTIONAL, meta data) - A .meta field is a table of custom meta categories which - each have custom meta properties. - example: .meta = { ["Google video"] = { ["docid"] = "-5784010886294950089"; ["GVP version"] = "1.1" }; ["misc"] = { "Hello" = "World!" } } + A .meta field is a table of custom meta key value pairs. + example: .meta = { ["GVP docid"] = "-5784010886294950089", ["GVP version] = "1.1", Hello = "World!" } Invalid playlist items will be discarded by VLC. playlist.enqueue( ... ): like playlist.add() except that track isn't played. playlist.get( [what, [tree]] ): Get the playlist. -- 2.39.2