summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-09-10 09:01:09 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-09-10 09:01:09 +0200
commit5a259c5e29f74066ad4c370dacc627b525143034 (patch)
tree20a6939fb1c5b72aab159477daaaa322352a4c57
parentb0374ebd8964aebc2c34603fe8972cca5d303276 (diff)
mpclient: fix command lists.
-rw-r--r--nephilim/mpclient.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py
index e691989..b2e2116 100644
--- a/nephilim/mpclient.py
+++ b/nephilim/mpclient.py
@@ -179,7 +179,7 @@ class MPClient(QtCore.QObject):
self._client.command_list_ok_begin()
for path in paths:
self._client.update(path)
- self._client.command_list_end()
+ list(self._client.command_list_end())
def volume(self):
@@ -301,16 +301,16 @@ class MPClient(QtCore.QObject):
if self._status['songid'] > 0:
self._client.seekid(self._status['songid'], time)
- def delete(self, list):
+ def delete(self, ids):
"""Remove all song IDs in list from the playlist."""
if not self.__check_command_ok('deleteid'):
return
self._client.command_list_ok_begin()
try:
- for id in list:
+ for id in ids:
self.logger.info('Deleting id %s from playlist.'%id)
self._client.deleteid(id)
- self._client.command_list_end()
+ list(self._client.command_list_end())
except mpd.CommandError, e:
self.logger.error('Error deleting files: %s.'%e)
def clear(self):
@@ -344,7 +344,7 @@ class MPClient(QtCore.QObject):
for id in source:
self._client.moveid(id, target + i)
i += 1
- self._client.command_list_end()
+ list(self._client.command_list_end())
#### private ####
def __finish_connect(self):