vlc | branch: master | Konstantin Pavlov <[email protected]> | Thu Dec 1 14:41:14 2011 +0400| [91d838ca49f2d76e29d65a8cb7b7a3bd9b50c4b4] | committer: Konstantin Pavlov
Lua: Fix extreme.com playlist parser. They use http now. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=91d838ca49f2d76e29d65a8cb7b7a3bd9b50c4b4 --- share/lua/playlist/extreme.lua | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/share/lua/playlist/extreme.lua b/share/lua/playlist/extreme.lua index 5c7b2f6..6fd7251 100644 --- a/share/lua/playlist/extreme.lua +++ b/share/lua/playlist/extreme.lua @@ -72,12 +72,10 @@ function parse() -- Try to find out if its a freecaster streaming or just a link to some -- other video streaming website - -- FIXME: I was unable to find any http-based freecaster streams, - -- 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. + -- We assume freecaster now streams in http if string.match( line, "<streams type=\"5\" server=\"(.*)\">" ) then - _,_,rtmpserver = string.find( line, "<streams type=\"5\" server=\"(.*)\">" ) + _,_,videoserver = string.find( line, "<streams type=\"5\" server=\"(.*)\">" ) gostraight = false end @@ -94,7 +92,7 @@ function parse() _,_,height = string.find( line, "height=\"(%d+)\" duration" ) _,_,playpath = string.find( line, "\">(.*)</stream>" ) if ( prefres < 0 or tonumber( height ) <= prefres ) then - path = "avio://" .. rtmpserver .. " playpath=" .. playpath + path = videoserver .. playpath end end end _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
