Changeset f3c16935fa5cdf084ebcc81d994f267e9adfa1fa
- 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
| rd2a20af |
rf3c1693 |
|
| 48 | 48 | description = vlc.resolve_xml_special_chars( string.gsub( line, "^.*name=\"description\" content=\"%w+ .* %w+ %w+ %w+ %w+ Videos\. ([^\"]*)\".*$", "%1" ) ) |
|---|
| 49 | 49 | end |
|---|
| 50 | | if string.match( line, "<link rel=\"thumbnail\"" ) |
|---|
| | 50 | if string.match( line, "\\\"videoPreview\\\"" ) |
|---|
| 51 | 51 | 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, "\\", "" ) |
|---|
| 53 | 54 | end |
|---|
| 54 | 55 | if path and name and description and arturl then break end |
|---|