Commit 6666c97e authored by Pierre Ynard's avatar Pierre Ynard

metachannels: properly resolve xml entities

parent 33c3fd72
...@@ -42,11 +42,11 @@ function parse() ...@@ -42,11 +42,11 @@ function parse()
for _,item in ipairs( channel.children ) do for _,item in ipairs( channel.children ) do
if( item.name == 'item' ) then if( item.name == 'item' ) then
simplexml.add_name_maps( item ) simplexml.add_name_maps( item )
local url = string.gsub( item.children_map['link'][1].children[1], '&', '&' ) local url = vlc.strings.resolve_xml_special_chars( item.children_map['link'][1].children[1] )
local title = item.children_map['title'][1].children[1] local title = vlc.strings.resolve_xml_special_chars( item.children_map['title'][1].children[1] )
local arturl = nil local arturl = nil
if item.children_map['media:thumbnail'] then if item.children_map['media:thumbnail'] then
arturl = item.children_map['media:thumbnail'][1].attributes['url'] arturl = vlc.strings.resolve_xml_special_chars( item.children_map['media:thumbnail'][1].attributes['url'] )
end end
table.insert( tracks, { path = url, table.insert( tracks, { path = url,
title = title, title = title,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment