[vlc-devel] commit: Add meta for current track to the status.xml data. ( Antoine Cellerier )
git version control
git at videolan.org
Mon Dec 14 23:57:37 CET 2009
vlc | branch: master | Antoine Cellerier <antoine at macbook.(none)> | Mon Dec 14 23:57:15 2009 +0100| [f7e46d4259ab6bd51253bbc796d5f629ac3e5f1a] | committer: Antoine Cellerier
Add meta for current track to the status.xml data.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7e46d4259ab6bd51253bbc796d5f629ac3e5f1a
---
share/lua/http/requests/status.xml | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/share/lua/http/requests/status.xml b/share/lua/http/requests/status.xml
index ea473a3..328e65f 100644
--- a/share/lua/http/requests/status.xml
+++ b/share/lua/http/requests/status.xml
@@ -116,13 +116,23 @@ local vout = input and vlc.object.find(input,'vout','child')
<loop><?vlc print(vlc.var.get(playlist,"loop")) ?></loop>
<repeat><?vlc print(vlc.var.get(playlist,"repeat")) ?></repeat>
<information>
+ <category name="meta">
+ <?vlc
+ if input then
+ local metas = vlc.input.metas()
+ for k,v in pairs(metas) do
+ print("<info name='"..k.."'>"..vlc.strings.convert_xml_special_chars(v).."</info>")
+ end
+ end
+ ?>
+ </category>
<?vlc
if input then
local info = vlc.input.info()
for k, v in pairs(info) do
print("<category name='"..k.."'>")
for k2, v2 in pairs(v) do
- print("<info name='"..k2.."'>"..string.gsub(v2,'&','&').."</info>")
+ print("<info name='"..k2.."'>"..vlc.strings.convert_xml_special_chars(v2).."</info>")
end
print("</category>")
end
More information about the vlc-devel
mailing list