[vlc-commits] Koreus: fix on broken pages
Jean-Baptiste Kempf
git at videolan.org
Fri Oct 19 12:01:09 CEST 2012
vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 19 11:59:26 2012 +0200| [eb37e40a5660d3e65c286fcb36e48326dae0d7e1] | committer: Jean-Baptiste Kempf
Koreus: fix on broken pages
(cherry picked from commit 12baf681cade7228219964d5b43fa5fc8ca2c3ce)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=eb37e40a5660d3e65c286fcb36e48326dae0d7e1
---
share/lua/playlist/koreus.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/share/lua/playlist/koreus.lua b/share/lua/playlist/koreus.lua
index 06d3b51..ce6a793 100644
--- a/share/lua/playlist/koreus.lua
+++ b/share/lua/playlist/koreus.lua
@@ -40,7 +40,9 @@ function parse()
end
if string.match( line, "<meta name=\"description\"" ) then
_,_,description = string.find( line, "content=\"(.-)\"" )
- description = vlc.strings.resolve_xml_special_chars( description )
+ if (description ~= nil) then
+ description = vlc.strings.resolve_xml_special_chars( description )
+ end
end
if string.match( line, "<meta name=\"author\"" ) then
_,_,artist = string.find( line, "content=\"(.-)\"" )
More information about the vlc-commits
mailing list