diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-08-25 09:30:10 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-08-25 09:30:10 +0200 |
commit | 83e78b12198c1388d064297097341e9e93da6e3a (patch) | |
tree | e286fe400cf5b41a1a30535421b599632ed5c1e3 | |
parent | e4f46487145be0bbcd2aa278388a1b4b3ef78f54 (diff) |
mpclient: fix find.
-rw-r--r-- | nephilim/mpclient.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py index bd137ea..dc4a131 100644 --- a/nephilim/mpclient.py +++ b/nephilim/mpclient.py @@ -157,10 +157,10 @@ class MPClient(QtCore.QObject): def is_playing(self): """Returns True if MPD is playing, False otherwise.""" return self._status['state'] == 'play' - def find(self, path): + def find(self, *args): if not self.__check_command_ok('find'): return [] - return self._client.find('file', path.encode('utf-8')) + return self._array_to_song_array(self._client.find(*args)) def update_db(self, paths = None): """Starts MPD database update.""" |