[vlc-commits] koreus.lua: decode title and description
Pierre Ynard
git at videolan.org
Sun Sep 30 17:15:02 CEST 2012
vlc/vlc-2.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Sep 30 17:06:31 2012 +0200| [299dd463f8095d443a64cf027441419db3e5a0c9] | committer: Pierre Ynard
koreus.lua: decode title and description
(cherry picked from commit 6c5a0639e7281ce93d1b1881ba45ddc2373396ff)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=299dd463f8095d443a64cf027441419db3e5a0c9
---
share/lua/playlist/koreus.lua | 3 +++
1 file changed, 3 insertions(+)
diff --git a/share/lua/playlist/koreus.lua b/share/lua/playlist/koreus.lua
index d849f03..06d3b51 100644
--- a/share/lua/playlist/koreus.lua
+++ b/share/lua/playlist/koreus.lua
@@ -36,12 +36,15 @@ 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
_,_,description = string.find( line, "content=\"(.-)\"" )
+ description = vlc.strings.resolve_xml_special_chars( description )
end
if string.match( line, "<meta name=\"author\"" ) then
_,_,artist = string.find( line, "content=\"(.-)\"" )
+ artist = vlc.strings.resolve_xml_special_chars( artist )
end
if string.match( line, "link rel=\"image_src\"" ) then
_,_,arturl = string.find( line, "href=\"(.-)\"" )
More information about the vlc-commits
mailing list