Changeset cb7cc6e86a49864e2349c19484279370268e89fd

Show
Ignore:
Timestamp:
09/09/07 23:01:31 (10 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1189371691 +0000
git-parent:

[e943c0003a271fce0c342fea521cdd7e2e5e3b27]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1189371691 +0000
Message:

Fix the url translation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • share/luaplaylist/dailymotion.lua

    radd1515 rcb7cc6e  
    11-- $Id$ 
     2 
     3--[[ 
     4    Translate Daily Motion video webpages URLs to the corresponding 
     5    FLV URL. 
     6--]] 
    27 
    38-- Probe function. 
     
    1419        line = vlc.readline() 
    1520        if not line then break end 
    16         if string.match( line, "param name=\"flashvars\" value=\"url=" ) 
     21        if string.match( line, "param name=\"flashvars\" value=\".*url=" ) 
    1722        then 
    18             path = vlc.decode_uri( string.gsub( line, "^.*param name=\"flashvars\" value=\"url=([^&]*).*$", "%1" ) ) 
     23            vlc.msg_err( "Tada!" ) 
     24            path = vlc.decode_uri( string.gsub( line, "^.*param name=\"flashvars\" value=\".*url=([^&]*).*$", "%1" ) ) 
     25            vlc.msg_err( path ) 
    1926        end 
    2027        --[[ if string.match( line, "<title>" )