]> git.sesse.net Git - vlc/commitdiff
lua: fix koreus parsing.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 26 Jul 2010 16:59:51 +0000 (18:59 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 26 Jul 2010 17:32:44 +0000 (19:32 +0200)
share/lua/playlist/koreus.lua

index 66e7c7afd5d2952402155bd67747475db4471fce..9b0a1bf0b1bd3ecca0bc15363b6f96f71cc530f5 100644 (file)
@@ -47,11 +47,9 @@ function parse()
                        _,_,arturl = string.find( line, "href=\"(.-)\"" )
                end
 
-               if string.match( line, "videoDiv\"%)%.innerHTML" ) then
-                       vid_url = string.match( line, '(http://media%d?%.koreus%.com/%d+/%d+/[%w-]*%.mp4)' )
-                       if vid_url then
-                               return { { path = vid_url; name = name; description = description; artist = artist; arturl = arturl } }
-                       end
+        vid_url = string.match( line, '(http://media%d?%.koreus%.com/%d+/%d+/[%w-]*%.mp4)' )
+               if vid_url then
+                       return { { path = vid_url; name = name; description = description; artist = artist; arturl = arturl } }
                end
        end
 end