Commit 7e2caf88 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix the dailymotion lua script.

parent f165974e
......@@ -18,9 +18,9 @@ function parse()
do
line = vlc.readline()
if not line then break end
if string.match( line, "param name=\"flashvars\" value=\".*url=" )
if string.match( line, "param name=\"flashvars\" value=\".*url=http" )
then
path = vlc.decode_uri( string.gsub( line, "^.*param name=\"flashvars\" value=\".*url=([^&]*).*$", "%1" ) )
path = vlc.decode_uri( string.gsub( line, "^.*param name=\"flashvars\" value=\".*url=(http[^&]*).*$", "%1" ) )
end
--[[ if string.match( line, "<title>" )
then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment