Commit 8c826f39 authored by Rémi Duraffort's avatar Rémi Duraffort

lua: fix koreus parsing.

parent 8744dc30
......@@ -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