[vlc-commits] liveleak.lua: Improve URL probe function

2017-02-09 Thread Marvin Scholz
vlc/vlc-2.2 | branch: master | Marvin Scholz  | Tue Oct 25 
09:47:52 2016 +0200| [f4926fd9a27acbd1caad0ff46df724906c755fcf] | committer: 
Pierre Ynard

liveleak.lua: Improve URL probe function

Improve the URL probe function to not match URLs like
http://example.org/www.liveleak.com/view?i=312_1477377129
as those should not be handled by this script.

Ref. #17488

Acked-by: Filip Roséen 
Signed-off-by: Rémi Denis-Courmont 
(cherry picked from commit 9ae3871c05e1463a77bd6997eb70b5564e1e395e)
Signed-off-by: Pierre Ynard 

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

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

diff --git a/share/lua/playlist/liveleak.lua b/share/lua/playlist/liveleak.lua
index 6811977..c7ce695 100644
--- a/share/lua/playlist/liveleak.lua
+++ b/share/lua/playlist/liveleak.lua
@@ -23,7 +23,7 @@
 -- Probe function.
 function probe()
 return vlc.access == "http"
-and string.match( vlc.path, "www.liveleak.com/view" )
+and string.match( vlc.path, "^www%.liveleak%.com/view" )
 end
 
 -- Util function

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


[vlc-commits] liveleak.lua: Improve URL probe function

2016-10-25 Thread Marvin Scholz
vlc | branch: master | Marvin Scholz  | Tue Oct 25 09:47:52 
2016 +0200| [9ae3871c05e1463a77bd6997eb70b5564e1e395e] | committer: Rémi 
Denis-Courmont

liveleak.lua: Improve URL probe function

Improve the URL probe function to not match URLs like
http://example.org/www.liveleak.com/view?i=312_1477377129
as those should not be handled by this script.

Ref. #17488

Acked-by: Filip Roséen 
Signed-off-by: Rémi Denis-Courmont 

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

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

diff --git a/share/lua/playlist/liveleak.lua b/share/lua/playlist/liveleak.lua
index 6811977..c7ce695 100644
--- a/share/lua/playlist/liveleak.lua
+++ b/share/lua/playlist/liveleak.lua
@@ -23,7 +23,7 @@
 -- Probe function.
 function probe()
 return vlc.access == "http"
-and string.match( vlc.path, "www.liveleak.com/view" )
+and string.match( vlc.path, "^www%.liveleak%.com/view" )
 end
 
 -- Util function

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


[vlc-commits] liveleak.lua: Improve URL probe function

2016-10-25 Thread Marvin Scholz
vlc | branch: master | Marvin Scholz  | Tue Oct 25 09:47:52 
2016 +0200| [fe857744afaaac2cdf5b787adc8d754df0f730a1] | committer: Rémi 
Denis-Courmont

liveleak.lua: Improve URL probe function

Improve the URL probe function to not match URLs like
http://example.org/www.liveleak.com/view?i=312_1477377129
as those should not be handled by this script.

Ref. #17488

Acked-by: Filip Roséen 
Signed-off-by: Rémi Denis-Courmont 

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

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

diff --git a/share/lua/playlist/liveleak.lua b/share/lua/playlist/liveleak.lua
index 6811977..c7ce695 100644
--- a/share/lua/playlist/liveleak.lua
+++ b/share/lua/playlist/liveleak.lua
@@ -23,7 +23,7 @@
 -- Probe function.
 function probe()
 return vlc.access == "http"
-and string.match( vlc.path, "www.liveleak.com/view" )
+and string.match( vlc.path, "^www%.liveleak%.com/view" )
 end
 
 -- Util function

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