Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
cb7cc6e8
Commit
cb7cc6e8
authored
Sep 09, 2007
by
dionoea
Browse files
Fix the url translation
parent
e943c000
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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