[vlc-commits] Musicbrainz art: remove dead code. vlc.misc is unavailable in meta.

Konstantin Pavlov git at videolan.org
Fri Jan 20 14:38:21 CET 2012


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Jan 20 15:13:30 2012 +0400| [0d9b87048de1d8567f84ec6d4eb6077561a6e1f3] | committer: Konstantin Pavlov

Musicbrainz art: remove dead code. vlc.misc is unavailable in meta.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d9b87048de1d8567f84ec6d4eb6077561a6e1f3
---

 share/lua/meta/art/04_musicbrainz.lua |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/share/lua/meta/art/04_musicbrainz.lua b/share/lua/meta/art/04_musicbrainz.lua
index a26f292..dbeda9f 100644
--- a/share/lua/meta/art/04_musicbrainz.lua
+++ b/share/lua/meta/art/04_musicbrainz.lua
@@ -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



More information about the vlc-commits mailing list