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
c163f06e
Commit
c163f06e
authored
Sep 12, 2012
by
Ludovic Fauvet
Committed by
Jean-Baptiste Kempf
Sep 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua soundcloud: fetch artwork
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
ac2ccb3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
share/lua/playlist/soundcloud.lua
share/lua/playlist/soundcloud.lua
+6
-1
No files found.
share/lua/playlist/soundcloud.lua
View file @
c163f06e
...
...
@@ -29,6 +29,7 @@ end
-- Parse function.
function
parse
()
if
string.match
(
vlc
.
path
,
"soundcloud%.com"
)
then
arturl
=
nil
while
true
do
line
=
vlc
.
readline
()
if
not
line
then
break
end
...
...
@@ -42,9 +43,13 @@ function parse()
-- we only want the first one of these lines
break
end
-- try to get the art url
if
string.match
(
line
,
"artwork--download--link"
)
then
_
,
_
,
arturl
=
string.find
(
line
,
" href=\"
(.
*
)
\
" "
)
end
end
path
=
"http://media.soundcloud.com/stream/"
..
uid
..
"?stream_token="
..
token
return
{
{
path
=
path
;
name
=
name
}
}
return
{
{
path
=
path
;
name
=
name
;
arturl
=
arturl
}
}
end
return
{}
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