From: kaliko Date: Tue, 9 Dec 2014 20:44:05 +0000 (+0100) Subject: Cleanup some dead code X-Git-Tag: 0.13.0~14 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=6ec7666214b71dc121a0d9b0fdb9ca7d48bda6d5;p=mpd-sima.git Cleanup some dead code --- diff --git a/sima/lib/simaecho.py b/sima/lib/simaecho.py index 147c624..beaf420 100644 --- a/sima/lib/simaecho.py +++ b/sima/lib/simaecho.py @@ -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, diff --git a/sima/lib/simafm.py b/sima/lib/simafm.py index 236efe7..6cff45f 100644 --- a/sima/lib/simafm.py +++ b/sima/lib/simafm.py @@ -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, diff --git a/sima/lib/webserv.py b/sima/lib/webserv.py index cff9d67..a1f6d99 100644 --- a/sima/lib/webserv.py +++ b/sima/lib/webserv.py @@ -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':