[vlc-commits] liveleak.lua: support new video URL format

Pierre Ynard git at videolan.org
Sat Apr 3 14:00:37 UTC 2021


vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Apr  3 15:38:08 2021 +0200| [e70b376940ee664a8f4dabaff7ec661d9eb7e673] | committer: Pierre Ynard

liveleak.lua: support new video URL format

(cherry picked from commit 3f401932985fcbe8b006f14f3a845e0708ef87fd)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

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

 share/lua/playlist/liveleak.lua | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/share/lua/playlist/liveleak.lua b/share/lua/playlist/liveleak.lua
index 170f07714f..890d493c92 100644
--- a/share/lua/playlist/liveleak.lua
+++ b/share/lua/playlist/liveleak.lua
@@ -23,8 +23,10 @@
 
 -- Probe function.
 function probe()
-    return ( vlc.access == "http" or vlc.access == "https" )
-        and string.match( vlc.path, "^www%.liveleak%.com/view" )
+    return ( vlc.access == "http" or vlc.access == "https" ) and (
+               string.match( vlc.path, "^www%.liveleak%.com/v%?" )
+            or string.match( vlc.path, "^www%.liveleak%.com/view%?" )
+           )
 end
 
 -- Util function



More information about the vlc-commits mailing list