From 8c826f3940e2af2001bd666febe69173792ee065 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Mon, 26 Jul 2010 18:59:51 +0200 Subject: [PATCH] lua: fix koreus parsing. --- share/lua/playlist/koreus.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 -- 2.39.2