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
47a9b990
Commit
47a9b990
authored
Mar 21, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httplua: export art by playlist item id
Usage:
http://localhost:8080/art?item=1234
parent
f79f3ae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
share/lua/intf/http.lua
share/lua/intf/http.lua
+14
-2
No files found.
share/lua/intf/http.lua
View file @
47a9b990
...
...
@@ -138,9 +138,21 @@ function dirlisting(url,listing,acl_)
end
-- FIXME: Experimental art support. Needs some cleaning up.
function
callback_art
(
data
,
request
)
function
callback_art
(
data
,
request
,
args
)
local
art
=
function
(
data
,
request
)
local
item
=
vlc
.
input
.
item
()
local
num
=
nil
if
args
~=
nil
then
num
=
string.gmatch
(
args
,
"item=(.*)"
)
if
num
~=
nil
then
num
=
num
()
end
end
local
item
if
num
==
nil
then
item
=
vlc
.
input
.
item
()
else
item
=
vlc
.
playlist
.
get
(
num
).
item
end
local
metas
=
item
:
metas
()
local
filename
=
vlc
.
strings
.
decode_uri
(
string.gsub
(
metas
[
"artwork_url"
],
"file://"
,
""
))
local
size
=
vlc
.
net
.
stat
(
filename
).
size
...
...
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