[vlc-commits] lua: update and tighten URL probe functions of playlist scripts

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 02:14:29 2016 +0100| [65b6c2f882bd2de764cf2664f29e20ede99138a0] | committer: Pierre Ynard

lua: update and tighten URL probe functions of playlist scripts

Update domains and URL roots, but these scripts are still otherwise
outdated and broken.

Ref. #17488

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

 share/lua/playlist/france2.lua | 2 +-
 share/lua/playlist/mpora.lua   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/lua/playlist/france2.lua b/share/lua/playlist/france2.lua
index 3d9ad1e..5e6f4cd 100644
--- a/share/lua/playlist/france2.lua
+++ b/share/lua/playlist/france2.lua
@@ -23,7 +23,7 @@
 -- Probe function.
 function probe()
     return vlc.access == "http"
-        and string.match( vlc.path, "jt.france2.fr/player/" )
+        and string.match( vlc.path, "^www%.francetvinfo%.fr/replay%-jt/.+" )
 end
 
 -- Parse function.
diff --git a/share/lua/playlist/mpora.lua b/share/lua/playlist/mpora.lua
index d48c1e6..61419fb 100644
--- a/share/lua/playlist/mpora.lua
+++ b/share/lua/playlist/mpora.lua
@@ -22,8 +22,8 @@
 
 -- Probe function.
 function probe()
-    return vlc.access == "http"
-        and string.match( vlc.path, "video%.mpora%.com/watch/" )
+    return ( vlc.access == "http" or vlc.access == "https" )
+        and string.match( vlc.path, "^mpora%.com/videos/" )
 end
 
 -- Parse function.



More information about the vlc-commits mailing list