Commit 951ced78 authored by Francois Cartegnie's avatar Francois Cartegnie

lua playlist: extend pluzz.lua to handle france4.

Some pluzz streams are only available on shows pages.
parent 4ad109e0
......@@ -25,6 +25,7 @@ function probe()
return vlc.access == "http"
and string.match( vlc.path, "pluzz.fr/%w+" )
or string.match( vlc.path, "info.francetelevisions.fr/.+")
or string.match( vlc.path, "france4.fr/%w+")
end
-- Helpers
......@@ -53,6 +54,19 @@ function parse()
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
title = ""
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