Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d6c60369
Commit
d6c60369
authored
Jan 29, 2010
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extensions/Lua script: enhance IMDb descriptor
parent
47af2aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
share/lua/extensions/imdb.lua
share/lua/extensions/imdb.lua
+11
-2
No files found.
share/lua/extensions/imdb.lua
View file @
d6c60369
...
...
@@ -23,7 +23,16 @@
dlg
=
nil
txt
=
nil
function
descriptor
()
return
{
title
=
"IMDb"
;
capabilities
=
{}
}
return
{
title
=
"IMDb - The Internet Movie Database"
;
version
=
"0.1"
;
author
=
"Jean-Philippe André"
;
url
=
'http://www.imdb.org/'
;
description
=
"<center><b>The Internet Movie Database</b></center>\n"
..
"Get information about movies from the Internet "
..
"Movie Database (IMDb).\nThis Extension will show "
..
"you the cast, a short plot summary and a link to "
..
"the web page on imdb.org."
;
capabilities
=
{}
}
end
-- Update title text field. Removes file extensions.
...
...
@@ -114,7 +123,7 @@ function click_okay()
if
(
not
table
)
then
break
end
pos
=
0
while
(
pos
~=
nil
)
do
_
,
_
,
link
=
string.find
(
table
,
"<a href=\"
([
^
\
"]+)\"", pos)
_
,
_
,
link
=
string.find
(
table
,
"<a href=\"
([
^
\
"]+
title[^\"
]
+
)
\
""
,
pos
)
if
(
not
link
)
then
break
end
-- this would not be normal behavior...
_
,
pos
,
title
=
string.find
(
table
,
"<a href=\"" .. link .. "
\
"[^>]*>([^<]+)</a>"
,
pos
)
if
(
not
title
)
then
break
end
-- this would not be normal behavior...
...
...
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