From: RĂ©mi Duraffort Date: Mon, 26 Jul 2010 16:59:51 +0000 (+0200) Subject: lua: fix koreus parsing. X-Git-Tag: 1.2.0-pre1~5665 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=8c826f3940e2af2001bd666febe69173792ee065 lua: fix koreus parsing. --- diff --git a/share/lua/playlist/koreus.lua b/share/lua/playlist/koreus.lua index 66e7c7afd5..9b0a1bf0b1 100644 --- a/share/lua/playlist/koreus.lua +++ b/share/lua/playlist/koreus.lua @@ -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