-- $Id$ --[[ Translate Daily Motion video webpages URLs to the corresponding FLV URL. --]] -- Probe function. function probe() return vlc.access == "http" and string.match( vlc.path, "dailymotion.com" ) and string.match( vlc.peek( 256 ), "Video " ) end -- Parse function. function parse() while true do line = vlc.readline() if not line then break end if string.match( line, "param name=\"flashvars\" value=\".*url=http" ) then path = vlc.decode_uri( string.gsub( line, "^.*param name=\"flashvars\" value=\".*url=(http[^&]*).*$", "%1" ) ) end --[[ if string.match( line, "