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
48d08eab
Commit
48d08eab
authored
Oct 30, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: update lelombrik script
parent
9907acfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
share/luaplaylist/lelombrik.lua
share/luaplaylist/lelombrik.lua
+2
-2
No files found.
share/luaplaylist/lelombrik.lua
View file @
48d08eab
...
@@ -16,12 +16,12 @@ function parse()
...
@@ -16,12 +16,12 @@ function parse()
if
string.match
(
line
,
"id=\"
nom_fichier
\
">"
)
then
if
string.match
(
line
,
"id=\"
nom_fichier
\
">"
)
then
vidtitle
=
string.gsub
(
line
,
".*\"
nom_fichier
\
">([^<]*).*"
,
"%1"
)
vidtitle
=
string.gsub
(
line
,
".*\"
nom_fichier
\
">([^<]*).*"
,
"%1"
)
end
end
if
string.match
(
line
,
"
<param name=\"
movie
\
"
"
)
then
if
string.match
(
line
,
"
flvplayer.swf
"
)
then
-- fallback: retrieve the title from the url if we didn't find it
-- fallback: retrieve the title from the url if we didn't find it
if
vidtitle
==
""
then
if
vidtitle
==
""
then
vidtitle
=
string.gsub
(
vlc
.
path
,
".*/([^.]*).*"
,
"%1"
)
vidtitle
=
string.gsub
(
vlc
.
path
,
".*/([^.]*).*"
,
"%1"
)
end
end
return
{
{
path
=
string.gsub
(
line
,
".*
%?
file=([^&]*).*"
,
"%1"
);
arturl
=
string.gsub
(
line
,
".*&image=([^&]*).*"
,
"%1"
);
title
=
vidtitle
}
}
return
{
{
path
=
string.gsub
(
line
,
".*
flashvars=\"
&
file
=
([
^
&
]
*
).
*
", "
%
1
" ); arturl = string.gsub( line, "
.
*
&
image
=
([
^
&
]
*
).
*
", "
%
1
" ); title = vidtitle } }
end
end
end
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