local name, path = vlc.convert_xml_special_chars(item.name,item.path or "")
local name, path = vlc.strings.convert_xml_special_chars(item.name,item.path or "")
print("<leafid='"..tostring(item.id).."'uri='"..path.."'name='"..name.."'ro='"..(item.flags.ro and "ro" or "rw").."'duration='"..tostring(item.duration).."'/>")
print("<leafid='"..tostring(item.id).."'uri='"..path.."'name='"..name.."'ro='"..(item.flags.ro and "ro" or "rw").."'duration='"..tostring(item.duration).."'/>")
end
end
end
end
...
@@ -64,7 +64,7 @@ if _GET["search"] then
...
@@ -64,7 +64,7 @@ if _GET["search"] then
else
else
_G.search_key = nil
_G.search_key = nil
end
end
local key = vlc.decode_uri(_GET["search"])
local key = vlc.strings.decode_uri(_GET["search"])