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
f3c16935
Commit
f3c16935
authored
Jan 25, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua demuxer: update dailymotion thumbnails
parent
41af59e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
share/luaplaylist/dailymotion.lua
share/luaplaylist/dailymotion.lua
+3
-2
No files found.
share/luaplaylist/dailymotion.lua
View file @
f3c16935
...
...
@@ -47,9 +47,10 @@ function parse()
name
=
vlc
.
resolve_xml_special_chars
(
string.gsub
(
line
,
"^.*name=\"
description
\
" content=\"
%
w
+
(.
*
)
%
w
+
%
w
+
%
w
+
%
w
+
Videos
\
..*
$
", "
%
1
" ) )
description = vlc.resolve_xml_special_chars( string.gsub( line, "
^
.
*
name
=
\
"description\"
content
=
\
"%w+ .* %w+ %w+ %w+ %w+ Videos\. ([^\"
]
*
)
\
".*$"
,
"%1"
)
)
end
if
string.match
(
line
,
"
<link rel=\"
thumbnail
\
""
)
if
string.match
(
line
,
"
\\\"
videoPreview\\
\"" )
then
arturl
=
string.gsub
(
line
,
"^.*\"
thumbnail
\
" type=\"
([
^
\
"]*)\"
.
*
$
", "
http
:
//%
1
" ) -- looks like the dailymotion people mixed up type and href here ...
arturl = string.gsub( line, "
^
.
*
\\\
"videoPreview\\\"
:
\\\
"([^\"
]
*
).
*
$
", "
%
1
" )
arturl = string.gsub( arturl, "
\\
", "" )
end
if path and name and description and arturl then break 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