[vlc-commits] koreus.lua: decode title and description

Pierre Ynard git at videolan.org
Sun Sep 30 17:06:59 CEST 2012


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Sep 30 17:06:31 2012 +0200| [6c5a0639e7281ce93d1b1881ba45ddc2373396ff] | committer: Pierre Ynard

koreus.lua: decode title and description

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c5a0639e7281ce93d1b1881ba45ddc2373396ff
---

 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