Commit bbe7d941 authored by Rémi Duraffort's avatar Rémi Duraffort

lua: fix koreus parsing.

(cherry picked from commit 8c826f3940e2af2001bd666febe69173792ee065)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 46eabaca
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment