summaryrefslogtreecommitdiff
path: root/nephilim/mpclient.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-03-10 21:26:41 +0100
committerAnton Khirnov <wyskas@gmail.com>2009-03-10 21:26:41 +0100
commit1b4e7a1c61c31c1684d12f4f92ba32862803a252 (patch)
tree7ab7e8851841d483a886d61ded46975b2380bb69 /nephilim/mpclient.py
parent2aebc5c3beb9819c512a2c19e72a3a3ff12f270e (diff)
mpclient: cosmetics.
Diffstat (limited to 'nephilim/mpclient.py')
-rw-r--r--nephilim/mpclient.py18
1 files 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."""