Changeset f3c16935fa5cdf084ebcc81d994f267e9adfa1fa

Show
Ignore:
Timestamp:
01/25/08 15:45:13 (5 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1201272313 +0000
git-parent:

[41af59e14d20b4a03a210d00437b0dfbf202069a]

git-author:
Rafaël Carré <funman@videolan.org> 1201272313 +0000
Message:

lua demuxer: update dailymotion thumbnails

Files:

Legend:

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

    rd2a20af rf3c1693  
    4848            description = vlc.resolve_xml_special_chars( string.gsub( line, "^.*name=\"description\" content=\"%w+ .* %w+ %w+ %w+ %w+ Videos\. ([^\"]*)\".*$", "%1" ) ) 
    4949        end 
    50         if string.match( line, "<link rel=\"thumbnail\"" ) 
     50        if string.match( line, "\\\"videoPreview\\\"" ) 
    5151        then 
    52             arturl = string.gsub( line, "^.*\"thumbnail\" type=\"([^\"]*)\".*$", "http://%1" ) -- looks like the dailymotion people mixed up type and href here ... 
     52            arturl = string.gsub( line, "^.*\\\"videoPreview\\\":\\\"([^\"]*).*$", "%1" ) 
     53            arturl = string.gsub( arturl, "\\", "" ) 
    5354        end 
    5455        if path and name and description and arturl then break end