From 1b4e7a1c61c31c1684d12f4f92ba32862803a252 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 10 Mar 2009 21:26:41 +0100 Subject: [PATCH] mpclient: cosmetics. --- nephilim/mpclient.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py index a09043c..664b942 100644 --- a/nephilim/mpclient.py +++ b/nephilim/mpclient.py @@ -6,15 +6,14 @@ from song import Song class MPClient(QtCore.QObject): """This class offers another layer above pympd, with usefull events.""" - _client = None # MPD client - - # cached objects + _client = None _cur_lib = None _cur_playlist = None _cur_song = None - _status = {'volume' : None, 'repeat' : None, 'random' : None, 'songid' : None, - 'playlist' : None, 'playlistlength' : None, 'state' : None, - 'time' : None, 'length' : None, 'xfade' : None, 'updatings_db' : None} + _status = {'volume' : None, 'repeat' : None, 'random' : None, + 'songid' : None, 'playlist' : None, 'playlistlength' : None, + 'state' : None, 'time' : None, 'length' : None, + 'xfade' : None, 'updatings_db' : None} _timer_id = None @@ -22,15 +21,8 @@ class MPClient(QtCore.QObject): def __init__(self): QtCore.QObject.__init__(self) - self._client = None - - self._cur_songid = -1 - self._cur_time = -1 - self._cur_state = -1 - self._cur_volume = -1 self._cur_lib = [] self._cur_playlist = [] - self._cur_plist_id = -1 def connect_mpd(self, host, port): """Connect to MPD@host:port. Returns Tue at success, False otherwise.""" -- 2.11.4.GIT