Skip to content

Commit

Permalink
lua: update and tighten URL probe functions of playlist scripts
Browse files Browse the repository at this point in the history
Update domains and URL roots, but these scripts are still otherwise
outdated and broken.

Ref. #17488
  • Loading branch information
linkfanel committed Nov 2, 2016
1 parent a1e38a3 commit 65b6c2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion share/lua/playlist/france2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions share/lua/playlist/mpora.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 65b6c2f

Please sign in to comment.