From: Antoine Cellerier Date: Fri, 14 Sep 2007 22:48:04 +0000 (+0000) Subject: Fix the dailymotion lua script. X-Git-Tag: 0.9.0-test0~5613 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7e2caf88d0382b94c4bd39e9da60041c2a788fcb;p=vlc Fix the dailymotion lua script. --- diff --git a/share/luaplaylist/dailymotion.lua b/share/luaplaylist/dailymotion.lua index 2e15d95ab5..41fe1087d5 100644 --- a/share/luaplaylist/dailymotion.lua +++ b/share/luaplaylist/dailymotion.lua @@ -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, "" ) then