vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfa...@yahoo.fr> | Sun Jan 27 
04:59:29 2019 +0100| [33408496451b5768bcb44eb3dc26d8d6ab159e97] | committer: 
Pierre Ynard

vimeo.lua: fix up probe URLs

(cherry picked from commit 952e1df1a8be484d1b7882666c42ccf1002cba0a)
Signed-off-by: Pierre Ynard <linkfa...@yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=33408496451b5768bcb44eb3dc26d8d6ab159e97
---

 share/lua/playlist/vimeo.lua | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/share/lua/playlist/vimeo.lua b/share/lua/playlist/vimeo.lua
index c6362660f4..fafc24852e 100644
--- a/share/lua/playlist/vimeo.lua
+++ b/share/lua/playlist/vimeo.lua
@@ -1,7 +1,6 @@
 --[[
- $Id$
 
- Copyright © 2009-2013 the VideoLAN team
+ Copyright © 2009-2019 the VideoLAN team
 
  Authors: Konstantin Pavlov (thr...@videolan.org)
           François Revol (re...@free.fr)
@@ -24,14 +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( 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
+        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/" ) )
 end
 
 -- Parse function.

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to