[vlc-devel] commit: browse.xml from lua's HTTP interface include all keys from vlc.net. stat returned table (Vicente Jimenez Aguilar )
git version control
git at videolan.org
Sun Aug 24 16:44:00 CEST 2008
vlc | branch: master | Vicente Jimenez Aguilar <googuy at gmail.com> | Wed Jul 2 01:25:39 2008 +0200| [5327c0071dd59b3719a08ae24c8a958e1bf9bdc9] | committer: Derk-Jan Hartman
browse.xml from lua's HTTP interface include all keys from vlc.net.stat returned table
Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5327c0071dd59b3719a08ae24c8a958e1bf9bdc9
---
share/lua/http/requests/browse.xml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/share/lua/http/requests/browse.xml b/share/lua/http/requests/browse.xml
index 80825d4..a192546 100644
--- a/share/lua/http/requests/browse.xml
+++ b/share/lua/http/requests/browse.xml
@@ -38,7 +38,9 @@ if dir then
local df = common.realpath(dir..f)
local s = vlc.net.stat(df)
local path, name = vlc.strings.convert_xml_special_chars( df, f )
- print("<element type='"..s.type.."' size='"..s.size.."' path='"..path.."' name='"..name.."'/>\n")
+ print("<element")
+ for k,v in pairs(s) do print(" "..k.."='"..v.."'") end
+ print(" path='"..path.."' name='"..name.."'/>\n")
end
end
end
More information about the vlc-devel
mailing list