vlc | branch: master | Marvin Scholz <[email protected]> | Tue Oct 25 13:40:32 2016 +0200| [c8c480266a3d3f871ccd53edd3be43f8a95f716d] | committer: Rémi Denis-Courmont
soundcloud.lua: Improve URL probe function 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 <[email protected]> Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8c480266a3d3f871ccd53edd3be43f8a95f716d --- share/lua/playlist/soundcloud.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/lua/playlist/soundcloud.lua b/share/lua/playlist/soundcloud.lua index 8dfbe7e..fbf8faf2 100644 --- a/share/lua/playlist/soundcloud.lua +++ b/share/lua/playlist/soundcloud.lua @@ -23,8 +23,10 @@ -- 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 ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
