X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fcore.py;fp=sima%2Fcore.py;h=31111fca00312bde925e337fd0bd067f5cd4910f;hb=78a694ddcd2a6ecc8b2b1fd3c74ee2d938707305;hp=0aaebec498ff14cc8f9615f1844f363ff283e1f4;hpb=300d9624d0c3bf2218a8df59eff689f5b78a2025;p=mpd-sima.git diff --git a/sima/core.py b/sima/core.py index 0aaebec..31111fc 100644 --- a/sima/core.py +++ b/sima/core.py @@ -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