From 481d3a670ae700b2b47dcd3e573f73800f5193e9 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 9 Mar 2010 00:10:14 +0100 Subject: [PATCH] ncmpc doesn't add quotes and capitalizes type argument for 'list' --- mopidy/mpd/handler.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mopidy/mpd/handler.py b/mopidy/mpd/handler.py index 557cccf8..d60e16e7 100644 --- a/mopidy/mpd/handler.py +++ b/mopidy/mpd/handler.py @@ -589,6 +589,7 @@ class MpdHandler(object): #return result @handle_pattern(r'^list "(?Partist)"$') + @handle_pattern(r'^list (?PArtist)$') @handle_pattern(r'^list "(?Palbum)"( "(?P[^"]+)")*$') def _music_db_list(self, type, artist=None): """ @@ -601,7 +602,13 @@ class MpdHandler(object): ``ARTIST`` is an optional parameter when type is ``album``, this specifies to list albums by an artist. + + *ncmpc:* + + - does not add quotes around the type argument. + - capitalizes the type argument. """ + type = type.lower() pass # TODO @handle_pattern(r'^listall "(?P[^"]+)"')