Commit b31a171b authored by Pierre Ynard's avatar Pierre Ynard

youtube.lua: user live stream URL support

This URL format is handed out by youtube when a user uploads and
publishes a live stream through their account. This is just an alternate
URL format over the classic HTML page for a video. We already have live
stream support for these when applicable.
parent 7af69672
......@@ -234,6 +234,8 @@ function probe()
end
end
return ( string.match( vlc.path, "/watch%?" ) -- the html page
or string.match( vlc.path, "/live$" ) -- user live stream html page
or string.match( vlc.path, "/live%?" ) -- user live stream html page
or string.match( vlc.path, "/get_video_info%?" ) -- info API
or string.match( vlc.path, "/v/" ) -- video in swf player
or string.match( vlc.path, "/embed/" ) -- embedded player iframe
......@@ -243,6 +245,8 @@ end
-- Parse function.
function parse()
if string.match( vlc.path, "/watch%?" )
or string.match( vlc.path, "/live$" )
or string.match( vlc.path, "/live%?" )
then -- This is the HTML page's URL
-- fmt is the format of the video
-- (cf. http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs)
......
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