Changeset 48d08eab9eae9a6dcf35ab5b340625fc05e0977d
- Timestamp:
- 30/10/07 04:58:28
(1 year ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1193716708 +0000
- git-parent:
[9907acfc7422d52b0fd174f7a20cc41d7896f9a2]
- git-author:
- Rafaël Carré <funman@videolan.org> 1193716708 +0000
- Message:
lua: update lelombrik script
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb3e157d |
r48d08ea |
|
| 17 | 17 | vidtitle = string.gsub( line, ".*\"nom_fichier\">([^<]*).*", "%1" ) |
|---|
| 18 | 18 | end |
|---|
| 19 | | if string.match( line, "<param name=\"movie\"" ) then |
|---|
| | 19 | if string.match( line, "flvplayer.swf" ) then |
|---|
| 20 | 20 | -- fallback: retrieve the title from the url if we didn't find it |
|---|
| 21 | 21 | if vidtitle == "" then |
|---|
| 22 | 22 | vidtitle = string.gsub( vlc.path, ".*/([^.]*).*", "%1" ) |
|---|
| 23 | 23 | end |
|---|
| 24 | | return { { path = string.gsub( line, ".*%?file=([^&]*).*", "%1" ); arturl = string.gsub( line, ".*&image=([^&]*).*", "%1" ); title = vidtitle } } |
|---|
| | 24 | return { { path = string.gsub( line, ".*flashvars=\"&file=([^&]*).*", "%1" ); arturl = string.gsub( line, ".*&image=([^&]*).*", "%1" ); title = vidtitle } } |
|---|
| 25 | 25 | end |
|---|
| 26 | 26 | end |
|---|