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
0d9b8704
Commit
0d9b8704
authored
Jan 20, 2012
by
Konstantin Pavlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Musicbrainz art: remove dead code. vlc.misc is unavailable in meta.
parent
ce16db86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
share/lua/meta/art/04_musicbrainz.lua
share/lua/meta/art/04_musicbrainz.lua
+0
-14
No files found.
share/lua/meta/art/04_musicbrainz.lua
View file @
0d9b8704
...
...
@@ -20,19 +20,6 @@
--]]
function
try_query
(
query
)
local
l
=
vlc
.
object
.
libvlc
()
local
t
=
vlc
.
var
.
get
(
l
,
"musicbrainz-previousdate"
)
if
t
~=
nil
then
if
t
+
2000000
.
>
vlc
.
misc
.
mdate
()
then
vlc
.
msg
.
warn
(
"We must wait 2 second between requests unless we want to be blacklisted from the musicbrainz server."
)
vlc
.
misc
.
mwait
(
t
+
2000000
.
)
end
vlc
.
var
.
set
(
l
,
"musicbrainz-previousdate"
,
vlc
.
misc
.
mdate
()
)
else
vlc
.
var
.
create
(
l
,
"musicbrainz-previousdate"
,
vlc
.
misc
.
mdate
()
)
end
l
=
nil
vlc
.
msg
.
dbg
(
query
)
local
s
=
vlc
.
stream
(
query
)
if
not
s
then
return
nil
end
local
page
=
s
:
read
(
65653
)
...
...
@@ -40,7 +27,6 @@ function try_query(query)
-- FIXME: multiple results may be available
_
,
_
,
asin
=
string.find
(
page
,
"<asin>(%w+)</asin>"
)
if
asin
then
vlc
.
msg
.
dbg
(
asin
)
return
"http://images.amazon.com/images/P/"
..
asin
..
".01._SCLZZZZZZZ_.jpg"
else
return
nil
...
...
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