]> kaliko git repositories - mpd-sima.git/blobdiff - sima/lib/webserv.py
Remove dead code
[mpd-sima.git] / sima / lib / webserv.py
index 0770ea8ae0afe4b84d96e3df0cdd13923b412016..96aacc9653352ff140eab9bd30cb3bdc00206833 100644 (file)
@@ -248,15 +248,6 @@ class WebService(AdvancedPlugin):
             self.log.info(' / '.join(map(str, candidates)))
         return candidates
 
-    def _get_album_history(self, artist):
-        """Retrieve album history"""
-        albums_list = set()
-        for trk in self.get_history(artist=artist.name):
-            if not trk.album:
-                continue
-            albums_list.add(trk.album)
-        return albums_list
-
     def find_album(self, artists):
         """Find albums to queue.
         """
@@ -327,7 +318,7 @@ class WebService(AdvancedPlugin):
             self.log.debug('Found no tracks to queue!')
             return
         for track in self.to_add:
-            self.log.info('%s candidates: %s', track, self.ws.name)
+            self.log.info('%s plugin chose: %s', self.ws.name, track)
 
     def _album(self):
         """Get albums for album queue mode
@@ -356,6 +347,8 @@ class WebService(AdvancedPlugin):
         msg = ' '.join(['{0}: {1:>3d}'.format(k, v) for
                         k, v in sorted(self.ws.stats.items())])
         self.log.debug('http stats: ' + msg)
+        if not self.to_add:
+            self.log.info('%s plugin found nothing to queue', self.ws.name)
         candidates = self.to_add
         self.to_add = list()
         if self.plugin_conf.get('queue_mode') != 'album':