Commit 33c3fd72 authored by Pierre Ynard's avatar Pierre Ynard

metachannels: fix playlist script too

parent d739fe06
...@@ -43,9 +43,14 @@ function parse() ...@@ -43,9 +43,14 @@ function parse()
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 = string.gsub( item.children_map['link'][1].children[1], '&', '&' )
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, table.insert( tracks, { path = url,
title = item.children_map['title'][1].children[1], title = title,
arturl = item.children_map['media:thumbnail'][1].attributes['url'], arturl = arturl,
options = {':play-and-pause'} } ) options = {':play-and-pause'} } )
end end
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