[vlc-commits] vocaroo.lua: tighten URL probe function

Pierre Ynard git at videolan.org
Wed Nov 2 02:21:10 CET 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Nov  2 01:52:25 2016 +0100| [d08ee1432b58cc2ea0dd866aece51bd2827de11e] | committer: Pierre Ynard

vocaroo.lua: tighten URL probe function

Ref. #17488

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

 share/lua/playlist/vocaroo.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/playlist/vocaroo.lua b/share/lua/playlist/vocaroo.lua
index cc1d264..a4c632f 100644
--- a/share/lua/playlist/vocaroo.lua
+++ b/share/lua/playlist/vocaroo.lua
@@ -26,7 +26,7 @@ local fmt = "mp3"
 -- Probe function.
 function probe()
     return ( vlc.access == "http" or vlc.access == "https" )
-        and string.match( vlc.path, "vocaroo%.com/i/" )
+        and string.match( vlc.path, "^vocaroo%.com/i/" )
 end
 
 -- Parse function.



More information about the vlc-commits mailing list