Changeset cb7cc6e86a49864e2349c19484279370268e89fd
- 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
| radd1515 |
rcb7cc6e |
|
| 1 | 1 | -- $Id$ |
|---|
| | 2 | |
|---|
| | 3 | --[[ |
|---|
| | 4 | Translate Daily Motion video webpages URLs to the corresponding |
|---|
| | 5 | FLV URL. |
|---|
| | 6 | --]] |
|---|
| 2 | 7 | |
|---|
| 3 | 8 | -- Probe function. |
|---|
| … | … | |
| 14 | 19 | line = vlc.readline() |
|---|
| 15 | 20 | 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=" ) |
|---|
| 17 | 22 | 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 ) |
|---|
| 19 | 26 | end |
|---|
| 20 | 27 | --[[ if string.match( line, "<title>" ) |
|---|