]> kaliko git repositories - mpd-sima.git/commitdiff
Cleanup some dead code
authorkaliko <kaliko@azylum.org>
Tue, 9 Dec 2014 20:44:05 +0000 (21:44 +0100)
committerkaliko <kaliko@azylum.org>
Tue, 9 Dec 2014 20:44:05 +0000 (21:44 +0100)
sima/lib/simaecho.py
sima/lib/simafm.py
sima/lib/webserv.py

index 147c624578f74de13f44ef54dd20d6d07ce10861..beaf420dae63757b3bfa108b415c04764e289a7e 100644 (file)
@@ -48,7 +48,6 @@ class SimaEch:
     """EchoNest http client
     """
     root_url = 'http://{host}/api/{version}'.format(**ECH)
-    ratelimit = None
     name = 'EchoNest'
     cache = False
     stats = {'etag':0,
index 236efe725cb9458dbf7f50531ffed66f0c92d156..6cff45f1d997541338c0dd7d647b8a425213ac12 100644 (file)
@@ -41,7 +41,6 @@ class SimaFM:
     """Last.fm http client
     """
     root_url = 'http://{host}/{version}/'.format(**LFM)
-    ratelimit = None
     name = 'Last.fm'
     cache = False
     stats = {'etag':0,
index cff9d6708ca46836383021b38f9a361617d8d288..a1f6d99d36f92cdc069839190249f57fa1021f94 100644 (file)
@@ -330,8 +330,6 @@ class WebService(Plugin):
                 titles = [t for t in self.ws.get_toptrack(artist)]
             except WSError as err:
                 self.log.warning('{0}: {1}'.format(self.ws.name, err))
-            if self.ws.ratelimit:
-                self.log.info('{0.name} ratelimit: {0.ratelimit}'.format(self.ws))
             for trk in titles:
                 found = self.player.fuzzy_find_track(artist, trk.title)
                 random.shuffle(found)
@@ -389,7 +387,7 @@ class WebService(Plugin):
         self.queue_mode()
         msg = ' '.join(['{0}: {1:>3d}'.format(k, v) for
                         k, v in sorted(self.ws.stats.items())])
-        self.log.debug(msg)
+        self.log.debug('http stats: ' + msg)
         candidates = self.to_add
         self.to_add = list()
         if self.plugin_conf.get('queue_mode') != 'album':