]> git.sesse.net Git - vlc/commitdiff
Fix the dailymotion lua script.
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 14 Sep 2007 22:48:04 +0000 (22:48 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 14 Sep 2007 22:48:04 +0000 (22:48 +0000)
share/luaplaylist/dailymotion.lua

index 2e15d95ab5b1e10334e3b66a4b6ce23f1889f239..41fe1087d5700c15938af8bb7de7584f7063bce9 100644 (file)
@@ -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