Improve the URL probe function to not match URLs like
http://example.org/foo/soundcloud.com/example/example as
those should not be handled by this script.
Ref. #17488
Acked-by: Filip Roséen <filip@atch.se>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
-- Probe function.
function probe()
+ local path = vlc.path
+ path = path:gsub("^www%.", "")
return ( vlc.access == "http" or vlc.access == "https" )
- and string.match( vlc.path, "soundcloud%.com/.+/.+" )
+ and string.match( path, "^soundcloud%.com/.+/.+" )
end
function fix_quotes( value )