Commit 976eec1c authored by François Revol's avatar François Revol Committed by Rafaël Carré

lua: assembleenationale: Fix after website changes

The streams lists were just moved out from direct.js to streams.js.

Streams still use crappy proprietary formats with ugly resolution,
can't do anything for this... If only they used a fixed playlist...
Signed-off-by: default avatarFrançois Revol <revol@free.fr>
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 1ba8b126
...@@ -96,7 +96,20 @@ function main() ...@@ -96,7 +96,20 @@ function main()
elseif( string.find( line, "urlIPhone = \"" ) ) then elseif( string.find( line, "urlIPhone = \"" ) ) then
_, _, path = string.find( line, "\"([^\"]+)\"" ) _, _, path = string.find( line, "\"([^\"]+)\"" )
iphone_base = path iphone_base = path
elseif( string.find( line, "var streamNames = new Array" ) ) then end
line = fd:readline()
end
-- fetch the streams JS file
fd, msg = vlc.stream( "http://www.assemblee-nationale.tv/ahp/scripts/streams.js" )
if not fd then
vlc.msg.warn(msg)
return nil
end
line = fd:readline()
while line ~= nil do
if( string.find( line, "var streamNames = new Array" ) ) then
_, _, str = string.find( line, "Array%( (.*)%);" ) _, _, str = string.find( line, "Array%( (.*)%);" )
repeat repeat
_, len, s = string.find( str, "\"([^\"]+)\"" ) _, len, s = string.find( str, "\"([^\"]+)\"" )
......
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