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

Pierre Ynard git at videolan.org
Sat Apr 3 13:50:27 UTC 2021


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

liveleak.lua: support new video URL format

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

 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