browse.xml from lua's HTTP interface include all keys from vlc.net.stat returned...
authorVicente Jimenez Aguilar <googuy@gmail.com>
Tue, 1 Jul 2008 23:25:39 +0000 (01:25 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 24 Aug 2008 14:46:53 +0000 (16:46 +0200)
Signed-off-by: Derk-Jan Hartman <hartman@videolan.org>
share/lua/http/requests/browse.xml

index 80825d4..a192546 100644 (file)
@@ -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