]> git.sesse.net Git - vlc/blobdiff - share/lua/playlist/koreus.lua
lua: fix koreus parsing.
[vlc] / 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