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
8b00a4b3
Commit
8b00a4b3
authored
May 14, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dailymotion.lua: woops, forgot to include title fetching in previous version.
parent
bea5e7ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
share/luaplaylist/dailymotion.lua
share/luaplaylist/dailymotion.lua
+7
-2
No files found.
share/luaplaylist/dailymotion.lua
View file @
8b00a4b3
...
@@ -15,8 +15,13 @@ function parse()
...
@@ -15,8 +15,13 @@ function parse()
if
not
line
then
break
end
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
then
return { { url = vlc.decode_uri( string.gsub( line, "
^
.
*
param
name
=
\
"flashvars\"
value
=
\
"url=([^&]*).*$"
,
"%1"
)
)
}
}
url = vlc.decode_uri( string.gsub( line, "
^
.
*
param
name
=
\
"flashvars\"
value
=
\
"url=([^&]*).*$"
,
"%1"
)
)
end
end
if
string.match
(
line
,
"<title>"
)
then
title
=
vlc
.
decode_uri
(
string.gsub
(
line
,
"^.*<title>([^<]*).*$"
,
"%1"
)
)
end
if
url
and
title
then
break
end
end
end
return
{}
return
{
{
url
=
url
;
title
=
title
}
}
end
end
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