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 2e15d95..41fe108 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