X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fcore.py;h=31111fca00312bde925e337fd0bd067f5cd4910f;hb=e8bcefbcb4a56e111af402bdb705436f42cc93e0;hp=0aaebec498ff14cc8f9615f1844f363ff283e1f4;hpb=ce32823ab9d41112d989f4543432926eb38487e6;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