Commit 338b204b authored by Pierre Ynard's avatar Pierre Ynard

koreus.lua: tighten URL probe function

Ref. #17488
parent d08ee143
......@@ -19,14 +19,9 @@
-- Probe function.
function probe()
if vlc.access ~= "http" and vlc.access ~= "https" then
return false
end
koreus_site = string.match( vlc.path, "koreus" )
if not koreus_site then
return false
end
return ( string.match( vlc.path, "video" ) ) -- http://www.koreus.com/video/pouet.html
local path = vlc.path:gsub("^www%.", "")
return ( vlc.access == "http" or vlc.access == "https" )
and string.match( path, "^koreus%.com/video/.+" )
end
-- Parse function.
......
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