Commit 34142f6b authored by Pierre Ynard's avatar Pierre Ynard
Browse files

lua: don't return pointless, wrong URL meta data

Don't return "url = vlc.path", first that's not a valid URL, then the
runtime already sets it automatically to the input URL by default.
parent 7a0f854f
......@@ -84,5 +84,5 @@ function parse()
return { }
end
return { { path = path; name = name; description = description; url = vlc.path; arturl = arturl; artist = artist } }
return { { path = path; name = name; description = description; arturl = arturl; artist = artist } }
end
......@@ -61,13 +61,13 @@ function parse()
name = vlc.strings.resolve_xml_special_chars( name )
name = vlc.strings.from_charset( "ISO_8859-1", name )
path = "http://www.katsomo.fi/?treeId="..treeid
table.insert( p, { path = path; name = name; url = vlc.path; arturl=arturl; } )
table.insert( p, { path = path; name = name; arturl=arturl; } )
end
for programid in string.gmatch( line, "<li class=\"program.*\" id=\"program(%d+)\" title=\".+\"" ) do
description = vlc.strings.resolve_xml_special_chars( find( line, "title=\"(.+)\"" ) )
description = vlc.strings.from_charset( "ISO_8859-1", description )
path = "http://www.katsomo.fi/metafile.asx?p="..programid.."&bw=800"
table.insert( p, { path = path; name = description; url = vlc.path; arturl=arturl; } )
table.insert( p, { path = path; name = description; arturl=arturl; } )
end
end
return p
......
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