5 return vlc.access == "http"
6 and string.match( vlc.path, "video.google.com" )
7 and string.match( vlc.path, "videoplay" )
15 if not line then break end
16 if string.match( line, "^<title>" ) then
17 title = string.gsub( line, "<title>([^<]*).*", "%1" )
19 if string.match( line, "src=\"/googleplayer.swf" ) then
20 url = string.gsub( line, ".*videoUrl=([^&]*).*" ,"%1" )
21 arturl = string.gsub( line, ".*thumbnailUrl=([^\"]*).*", "%1" )
22 return { { path = vlc.decode_uri(url), title = title, arturl = vlc.decode_uri(arturl) } }