]> git.sesse.net Git - vlc/blob - share/luaplaylist/googlevideo.lua
* luaplaylist.c: add support for meta data info. Playlist items now use .path and...
[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     return { { path = string.gsub( vlc.path, "^.*(docid=[^&]*).*$", "http://video.google.com/videogvp?%1" ) } }
13 end