Commit 299dd463 authored by Pierre Ynard's avatar Pierre Ynard

koreus.lua: decode title and description

(cherry picked from commit 6c5a0639e7281ce93d1b1881ba45ddc2373396ff)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent 6c71e02b
...@@ -36,12 +36,15 @@ function parse() ...@@ -36,12 +36,15 @@ function parse()
if not line then break end if not line then break end
if string.match( line, "<meta name=\"title\"" ) then if string.match( line, "<meta name=\"title\"" ) then
_,_,name = string.find( line, "content=\"(.-)\"" ) _,_,name = string.find( line, "content=\"(.-)\"" )
name = vlc.strings.resolve_xml_special_chars( name )
end end
if string.match( line, "<meta name=\"description\"" ) then if string.match( line, "<meta name=\"description\"" ) then
_,_,description = string.find( line, "content=\"(.-)\"" ) _,_,description = string.find( line, "content=\"(.-)\"" )
description = vlc.strings.resolve_xml_special_chars( description )
end end
if string.match( line, "<meta name=\"author\"" ) then if string.match( line, "<meta name=\"author\"" ) then
_,_,artist = string.find( line, "content=\"(.-)\"" ) _,_,artist = string.find( line, "content=\"(.-)\"" )
artist = vlc.strings.resolve_xml_special_chars( artist )
end end
if string.match( line, "link rel=\"image_src\"" ) then if string.match( line, "link rel=\"image_src\"" ) then
_,_,arturl = string.find( line, "href=\"(.-)\"" ) _,_,arturl = string.find( line, "href=\"(.-)\"" )
......
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