Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
cb7cc6e8
Commit
cb7cc6e8
authored
Sep 09, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the url translation
parent
e943c000
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
share/luaplaylist/dailymotion.lua
share/luaplaylist/dailymotion.lua
+9
-2
No files found.
share/luaplaylist/dailymotion.lua
View file @
cb7cc6e8
-- $Id$
--[[
Translate Daily Motion video webpages URLs to the corresponding
FLV URL.
--]]
-- Probe function.
function
probe
()
return
vlc
.
access
==
"http"
...
...
@@ -13,9 +18,11 @@ function parse()
do
line
=
vlc
.
readline
()
if
not
line
then
break
end
if
string.match
(
line
,
"param name=\"
flashvars
\
" value=\"
url
=
" )
if
string.match
(
line
,
"param name=\"
flashvars
\
" value=\"
.
*
url
=
" )
then
path = vlc.decode_uri( string.gsub( line, "
^
.
*
param
name
=
\
"flashvars\"
value
=
\
"url=([^&]*).*$"
,
"%1"
)
)
vlc.msg_err( "
Tada
!
" )
path = vlc.decode_uri( string.gsub( line, "
^
.
*
param
name
=
\
"flashvars\"
value
=
\
".*url=([^&]*).*$"
,
"%1"
)
)
vlc
.
msg_err
(
path
)
end
--[[ if string.match( line, "<title>" )
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment