5 return vlc.access == "http"
6 and string.match( vlc.path, "dailymotion.com" )
7 and vlc.peek( 9 ) == "<!DOCTYPE"
15 if not line then break end
16 if string.match( line, "param name=\"flashvars\" value=\"url=" )
18 url = vlc.decode_uri( string.gsub( line, "^.*param name=\"flashvars\" value=\"url=([^&]*).*$", "%1" ) )
20 if string.match( line, "<title>" )
22 title = vlc.decode_uri( string.gsub( line, "^.*<title>([^<]*).*$", "%1" ) )
24 if url and title then break end
26 return { { url = url; title = title } }