Commit b2755006 authored by Konstantin Pavlov's avatar Konstantin Pavlov

Lua: Fix extreme.com playlist parser. They use http now.

parent e50a0d69
...@@ -72,12 +72,10 @@ function parse() ...@@ -72,12 +72,10 @@ function parse()
-- Try to find out if its a freecaster streaming or just a link to some -- Try to find out if its a freecaster streaming or just a link to some
-- other video streaming website -- other video streaming website
-- FIXME: I was unable to find any http-based freecaster streams, -- We assume freecaster now streams in http
-- but I remember there were some a few months back.
-- Right now we assume everything is streamed using RTMP, so we feed them to avio.
if string.match( line, "<streams type=\"5\" server=\"(.*)\">" ) if string.match( line, "<streams type=\"5\" server=\"(.*)\">" )
then then
_,_,rtmpserver = string.find( line, "<streams type=\"5\" server=\"(.*)\">" ) _,_,videoserver = string.find( line, "<streams type=\"5\" server=\"(.*)\">" )
gostraight = false gostraight = false
end end
...@@ -94,7 +92,7 @@ function parse() ...@@ -94,7 +92,7 @@ function parse()
_,_,height = string.find( line, "height=\"(%d+)\" duration" ) _,_,height = string.find( line, "height=\"(%d+)\" duration" )
_,_,playpath = string.find( line, "\">(.*)</stream>" ) _,_,playpath = string.find( line, "\">(.*)</stream>" )
if ( prefres < 0 or tonumber( height ) <= prefres ) then if ( prefres < 0 or tonumber( height ) <= prefres ) then
path = "avio://" .. rtmpserver .. " playpath=" .. playpath path = videoserver .. playpath
end end
end end
end end
......
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