Commit d3587998 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

lua playlist: extend pluzz.lua to handle france4.

Some pluzz streams are only available on shows pages.
(cherry picked from commit 951ced78)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5c96b27d
...@@ -25,6 +25,7 @@ function probe() ...@@ -25,6 +25,7 @@ function probe()
return vlc.access == "http" return vlc.access == "http"
and string.match( vlc.path, "pluzz.fr/%w+" ) and string.match( vlc.path, "pluzz.fr/%w+" )
or string.match( vlc.path, "info.francetelevisions.fr/.+") or string.match( vlc.path, "info.francetelevisions.fr/.+")
or string.match( vlc.path, "france4.fr/%w+")
end end
-- Helpers -- Helpers
...@@ -53,6 +54,19 @@ function parse() ...@@ -53,6 +54,19 @@ function parse()
end end
end end
if string.match ( vlc.path, "www.france4.fr/%w+" ) then
while true do
line = vlc.readline()
if not line then break end
-- maybe we should get id from tags having video/cappuccino type instead
if string.match( line, "id=\"lavideo\"" ) then
_,_,redirect = string.find (line, "href=\"(.-)\"" )
print ("redirecting to: " .. redirect )
return { { path = redirect } }
end
end
end
if string.match ( vlc.path, "info.francetelevisions.fr/.+" ) then if string.match ( vlc.path, "info.francetelevisions.fr/.+" ) then
title = "" title = ""
arturl = "http://info.francetelevisions.fr/video-info/player_sl/Images/PNG/gene_ftv.png" arturl = "http://info.francetelevisions.fr/video-info/player_sl/Images/PNG/gene_ftv.png"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment