-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathirssi.xml
32 lines (23 loc) · 865 Bytes
/
irssi.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="utf-8" standalone="yes" ?<?vlcprint'>'?>
<?vlc --[[
vim:syntax=lua
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
< irssi.xml: VLC media player web interface for irssi media data
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
< Copyright (C) 2014 Ene Alin Gabriel
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
]]?>
<?vlc
--package.loaded.httprequests = nil --uncomment to debug changes
require "httprequests"
httprequests.processcommands()
print('<root>\n')
local item = vlc.input.item()
if item ~= nil then
local statusTable = httprequests.getstatus(false)
print("<time>"..statusTable['time'].."</time>");
local metas = item:metas()
print("<title>"..httprequests.xmlString(metas['filename']).."</title>")
end
?>
</root>