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
cc56ca3a
Commit
cc56ca3a
authored
Feb 15, 2012
by
Cheng Sun
Committed by
Jean-Baptiste Kempf
Feb 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua vimeo playlist: no need to parse vlc.path more than once
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
9e6d4804
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
share/lua/playlist/vimeo.lua
share/lua/playlist/vimeo.lua
+2
-2
No files found.
share/lua/playlist/vimeo.lua
View file @
cc56ca3a
...
...
@@ -51,6 +51,8 @@ function parse()
if
string.match
(
vlc
.
path
,
"vimeo.com/moogaloop"
)
then
prefres
=
get_prefres
()
ishd
=
false
-- Try to find id of the video
_
,
_
,
id
=
string.find
(
vlc
.
path
,
"vimeo.com/moogaloop/load/clip:(.*)/local/"
)
while
true
do
-- Try to find the video's title
line
=
vlc
.
readline
()
...
...
@@ -58,8 +60,6 @@ function parse()
if
string.match
(
line
,
"<caption>(.*)</caption>"
)
then
_
,
_
,
name
=
string.find
(
line
,
"<caption>(.*)</caption>"
)
end
-- Try to find id of the video
_
,
_
,
id
=
string.find
(
vlc
.
path
,
"vimeo.com/moogaloop/load/clip:(.*)/local/"
)
-- Try to find image for thumbnail
if
string.match
(
line
,
"<thumbnail>(.*)</thumbnail>"
)
then
_
,
_
,
arturl
=
string.find
(
line
,
"<thumbnail>(.*)</thumbnail>"
)
...
...
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