From 690116197390617eeb88c42994aedaed59a7612d Mon Sep 17 00:00:00 2001 From: Johannes Knutsen Date: Mon, 29 Mar 2010 19:19:02 +0200 Subject: [PATCH] Support album track listing in gmpc by implementing support for command: list album "[ALBUM]" artist "[ARTIST]" --- mopidy/mpd/frontend.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mopidy/mpd/frontend.py b/mopidy/mpd/frontend.py index 7a402ebe..55cbfeeb 100644 --- a/mopidy/mpd/frontend.py +++ b/mopidy/mpd/frontend.py @@ -577,6 +577,8 @@ class MpdFrontend(object): r'"(?P[^"]+)"$') @handle_pattern(r'^find "(?P(album|artist|title))" ' r'"(?P[^"]+)"$') + @handle_pattern(r'^find (?P(album)) ' + r'"(?P[^"]+)" artist "([^"]+)"$') def _music_db_find(self, type, what): """ *musicpd.org, music database section:* @@ -589,6 +591,8 @@ class MpdFrontend(object): *GMPC:* - does not add quotes around the type argument. + - also uses ``find album "[ALBUM]" artist "[ARTIST]"`` to list album + tracks. *ncmpc:*