Commit 8543f71e authored by Pierre Ynard's avatar Pierre Ynard

metachannels: fix playlist script too

(cherry picked from commit 33c3fd72)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent 80790ed6
......@@ -43,9 +43,14 @@ function parse()
if( item.name == 'item' ) then
simplexml.add_name_maps( item )
local url = string.gsub( item.children_map['link'][1].children[1], '&amp;', '&' )
local title = item.children_map['title'][1].children[1]
local arturl = nil
if item.children_map['media:thumbnail'] then
arturl = item.children_map['media:thumbnail'][1].attributes['url']
end
table.insert( tracks, { path = url,
title = item.children_map['title'][1].children[1],
arturl = item.children_map['media:thumbnail'][1].attributes['url'],
title = title,
arturl = arturl,
options = {':play-and-pause'} } )
end
end
......
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