From 0af7c52544443c05b6e7e2d71fcda2c15562a08b Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 7 Mar 2010 22:37:59 +0100 Subject: [PATCH] Document how GMPC does multi-word search --- mopidy/mpd/handler.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/mopidy/mpd/handler.py b/mopidy/mpd/handler.py index f1f429af..669fe399 100644 --- a/mopidy/mpd/handler.py +++ b/mopidy/mpd/handler.py @@ -555,7 +555,9 @@ class MpdHandler(object): Finds songs in the db that are exactly ``WHAT``. ``TYPE`` should be ``album``, ``artist``, or ``title``. ``WHAT`` is what to find. - GMPC does not add ``"`` around the type argument. + *GMPC:* + + - does not add quotes around the type argument. """ if type == u'title': type = u'track' @@ -660,9 +662,15 @@ class MpdHandler(object): ``title``, ``artist``, ``album`` or ``filename``. Search is not case sensitive. - GMPC does not add ``"`` around the type argument, and uses the type - ``any`` too. + *GMPC:* + + - does not add quotes around the type argument. + - uses the undocumented type ``any``. + - searches for multiple words like this:: + + search any "foo" any "bar" any "baz" """ + # TODO Support GMPC multi-word search if type == u'title': type = u'track' return self.backend.library.search(type, what).mpd_format(