]> git.sesse.net Git - vlc/commitdiff
Koreus: fix on broken pages
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 19 Oct 2012 09:59:26 +0000 (11:59 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 19 Oct 2012 09:59:26 +0000 (11:59 +0200)
share/lua/playlist/koreus.lua

index 06d3b5152027f9d71559df8ecaae862c8f6b7d9b..ce6a7933785433fa776b7d5d040586ea85e3edc2 100644 (file)
@@ -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=\"(.-)\"" )