summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-08-25 15:20:57 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-08-25 15:20:57 +0200
commit0c95be93be050311ad4d3c4e56fa827a08b20efa (patch)
tree08752c0716a1ba9c286d344652c8f14a66b13b2d
parent6a66a43ef1fc01e128c4ac8e5a80214bd87518d2 (diff)
mpclient & mpd: add findadd command.
-rw-r--r--nephilim/mpclient.py4
-rw-r--r--nephilim/mpd.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py
index dc4a131..fa5fd3c 100644
--- a/nephilim/mpclient.py
+++ b/nephilim/mpclient.py
@@ -161,6 +161,10 @@ class MPClient(QtCore.QObject):
if not self.__check_command_ok('find'):
return []
return self._array_to_song_array(self._client.find(*args))
+ def findadd(self, *args):
+ if not self.__check_command_ok('findadd'):
+ return
+ return self._client.findadd(*args)
def update_db(self, paths = None):
"""Starts MPD database update."""
diff --git a/nephilim/mpd.py b/nephilim/mpd.py
index 8aa6c0f..129c82e 100644
--- a/nephilim/mpd.py
+++ b/nephilim/mpd.py
@@ -66,6 +66,7 @@ class MPDClient(object):
"urlhandlers": self._getlist,
# Database Commands
"find": self._getsongs,
+ "findadd": self._getnone,
"list": self._getlist,
"listall": self._getdatabase,
"listallinfo": self._getdatabase,