From a268f836e76472c1037c654641373d62fa4ec5d1 Mon Sep 17 00:00:00 2001 From: chme Date: Mon, 6 Apr 2015 10:27:13 +0200 Subject: [PATCH] [mpd] fix command list for albumartist --- src/mpd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mpd.c b/src/mpd.c index bd5eb14d..72fba1e8 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -2202,13 +2202,18 @@ mpd_command_list(struct evbuffer *evbuf, int argc, char **argv, char **errmsg) memset(&qp, 0, sizeof(struct query_params)); - if (0 == strcasecmp(argv[1], "artist") - || 0 == strcasecmp(argv[1], "albumartist")) + if (0 == strcasecmp(argv[1], "artist")) { qp.type = Q_GROUP_ARTISTS; qp.sort = S_ARTIST; type = "Artist: "; } + if (0 == strcasecmp(argv[1], "albumartist")) + { + qp.type = Q_GROUP_ARTISTS; + qp.sort = S_ARTIST; + type = "AlbumArtist: "; + } else if (0 == strcasecmp(argv[1], "album")) { qp.type = Q_GROUP_ALBUMS;