Commit 4491de9a authored by Pierre Ynard's avatar Pierre Ynard

koreus.lua: small fix-up

parent 15eb1dff
...@@ -47,9 +47,10 @@ function parse() ...@@ -47,9 +47,10 @@ function parse()
_,_,arturl = string.find( line, "href=\"(.-)\"" ) _,_,arturl = string.find( line, "href=\"(.-)\"" )
end end
vid_url = string.match( line, '(http://embed.koreus.com/%d+/%d+/[%w-]*%.mp4)' ) vid_url = string.match( line, '(http://embed%.koreus%.com/%d+/%d+/[%w-]*%.mp4)' )
if vid_url then if vid_url then
return { { path = vid_url; name = name; description = description; artist = artist; arturl = arturl } } return { { path = vid_url; name = name; description = description; artist = artist; arturl = arturl } }
end end
end end
return {}
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