diff --git a/share/lua/playlist/vimeo.lua b/share/lua/playlist/vimeo.lua index a323249f08..4819fbd317 100644 --- a/share/lua/playlist/vimeo.lua +++ b/share/lua/playlist/vimeo.lua @@ -24,10 +24,12 @@ -- 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, "vimeo%.com/%d+$" ) - or string.match( vlc.path, "vimeo%.com/channels/(.-)/%d+$" ) - or string.match( vlc.path, "player%.vimeo%.com" ) ) + and ( string.match( path, "^vimeo%.com/%d+$" ) + or string.match( path, "^vimeo%.com/channels/(.-)/%d+$" ) + or string.match( path, "^player%.vimeo%.com" ) ) -- do not match other addresses, -- else we'll also try to decode the actual video url end