]> git.sesse.net Git - vlc/blob - share/luaplaylist/googlevideo.lua
3b9d8fc15a787a10d08fa90286d03836a8ded9b8
[vlc] / share / luaplaylist / googlevideo.lua
1 -- $Id$
2
3 -- Probe function.
4 function probe()
5     return vlc.access == "http"
6         and string.match( vlc.path, "video.google.com" ) 
7         and string.match( vlc.path, "videoplay" )
8 end
9
10 -- Parse function.
11 function parse()
12     -- We don't need to get the meta data here since it'll be available in
13     -- the GVP file.
14     return { { path = string.gsub( vlc.path, "^.*(docid=[^&]*).*$", "http://video.google.com/videogvp?%1" ) } }
15 end