Commit e14b3fcc authored by Ilkka Ollakka's avatar Ilkka Ollakka

youtube.lua: decode uri/xml-chars on name

(cherry picked from commit 0023f19d8acc0909e5fc92a2f7a3ed8f1ea0f9ce)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent 0187689b
......@@ -67,6 +67,7 @@ function parse()
if not line then break end
if string.match( line, "<meta name=\"title\"" ) then
_,_,name = string.find( line, "content=\"(.-)\"" )
name = vlc.strings.resolve_xml_special_chars( name )
end
if string.match( line, "<meta name=\"description\"" ) then
-- Don't ask me why they double encode ...
......@@ -151,7 +152,7 @@ function parse()
return { { path = path; name = name; description = description; artist = artist; arturl = arturl; options = options } }
else -- This is the flash player's URL
if string.match( vlc.path, "title=" ) then
name = get_url_param( vlc.path, "title" )
name = vlc.strings.decode_uri(get_url_param( vlc.path, "title" ))
end
video_id = get_url_param( vlc.path, "video_id" )
arturl = get_arturl( vlc.path, video_id )
......
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