From 229d0d391dc7d5b0167dde842010a544b1b31e51 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 9 Mar 2010 00:03:42 +0100 Subject: [PATCH] ncmpc uses capitalized type arguments for search --- mopidy/mpd/handler.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mopidy/mpd/handler.py b/mopidy/mpd/handler.py index cd6be9be..0dc03bf0 100644 --- a/mopidy/mpd/handler.py +++ b/mopidy/mpd/handler.py @@ -544,6 +544,8 @@ class MpdHandler(object): @handle_pattern(r'^find (?P(album|artist|title)) ' r'"(?P[^"]+)"$') + @handle_pattern(r'^find (?P(Album|Artist|Title)) ' + r'"(?P[^"]+)"$') @handle_pattern(r'^find "(?P(album|artist|title))" ' r'"(?P[^"]+)"$') def _music_db_find(self, type, what): @@ -558,7 +560,13 @@ class MpdHandler(object): *GMPC:* - does not add quotes around the type argument. + + *ncmpc:* + + - does not add quotes around the type argument. + - capitalizes the type argument. """ + type = type.lower() if type == u'title': type = u'track' return self.backend.library.find_exact(type, what).mpd_format(