Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6d5cb64b
Commit
6d5cb64b
authored
Jul 21, 2009
by
Fabio Ritrovato
Committed by
Jean-Baptiste Kempf
Jul 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dailymotion: fix for other domains and description parsing
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a899dcfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
share/lua/playlist/dailymotion.lua
share/lua/playlist/dailymotion.lua
+2
-2
No files found.
share/lua/playlist/dailymotion.lua
View file @
6d5cb64b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
-- Probe function.
-- Probe function.
function
probe
()
function
probe
()
return
vlc
.
access
==
"http"
return
vlc
.
access
==
"http"
and
string.match
(
vlc
.
path
,
"dailymotion.
com
"
)
and
string.match
(
vlc
.
path
,
"dailymotion."
)
and
string.match
(
vlc
.
peek
(
2048
),
"<!DOCTYPE.*video_type"
)
and
string.match
(
vlc
.
peek
(
2048
),
"<!DOCTYPE.*video_type"
)
end
end
...
@@ -85,7 +85,7 @@ function parse()
...
@@ -85,7 +85,7 @@ function parse()
end
end
if string.match( line, "
<
meta
name
=
\
"description\"" )
if string.match( line, "
<
meta
name
=
\
"description\"" )
then
then
description = vlc.strings.resolve_xml_special_chars( find( line, "
name
=
\
"description\"
content
=
\
"(.-)\"" ) )
description = vlc.strings.resolve_xml_special_chars( find( line, "
name
=
\
"description\"
lang
=
\
".-\"
content
=
\
"(.-)\"" ) )
end
end
if path and name and description and arturl then break end
if path and name and description and arturl then break end
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