]> kaliko git repositories - mpd-sima.git/blobdiff - sima/core.py
Add EchoNest top tracks
[mpd-sima.git] / sima / core.py
index 0aaebec498ff14cc8f9615f1844f363ff283e1f4..31111fca00312bde925e337fd0bd067f5cd4910f 100644 (file)
@@ -20,7 +20,6 @@
 """Core Object dealing with plugins and player client
 """
 
-import sys
 import time
 
 from collections import deque
@@ -60,6 +59,7 @@ class Sima(Daemon):
         return PlayerClient(host, port, pswd)
 
     def add_history(self):
+        """Handle local short history"""
         self.short_history.appendleft(self.player.current)
 
     def register_plugin(self, plugin_class):
@@ -73,6 +73,7 @@ class Sima(Daemon):
             getattr(plugin, method)(*args, **kwds)
 
     def need_tracks(self):
+        """Is the player in need for tracks"""
         if not self.enabled:
             self.log.debug('Queueing disabled!')
             return False