From 83e78b12198c1388d064297097341e9e93da6e3a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 25 Aug 2009 09:30:10 +0200 Subject: mpclient: fix find. --- nephilim/mpclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nephilim/mpclient.py') 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.""" -- cgit v1.2.3