Support album track listing in gmpc by implementing support for command: list album "[ALBUM]" artist "[ARTIST]"

This commit is contained in:
Johannes Knutsen 2010-03-29 19:19:02 +02:00
parent 3e4514cf64
commit 6901161973

View File

@ -577,6 +577,8 @@ class MpdFrontend(object):
r'"(?P<what>[^"]+)"$')
@handle_pattern(r'^find "(?P<type>(album|artist|title))" '
r'"(?P<what>[^"]+)"$')
@handle_pattern(r'^find (?P<type>(album)) '
r'"(?P<what>[^"]+)" 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:*