[mpd] fix command list for albumartist

This commit is contained in:
chme 2015-04-06 10:27:13 +02:00
parent b7d5b1650e
commit a268f836e7
1 changed files with 7 additions and 2 deletions

View File

@ -2202,13 +2202,18 @@ mpd_command_list(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
memset(&qp, 0, sizeof(struct query_params)); memset(&qp, 0, sizeof(struct query_params));
if (0 == strcasecmp(argv[1], "artist") if (0 == strcasecmp(argv[1], "artist"))
|| 0 == strcasecmp(argv[1], "albumartist"))
{ {
qp.type = Q_GROUP_ARTISTS; qp.type = Q_GROUP_ARTISTS;
qp.sort = S_ARTIST; qp.sort = S_ARTIST;
type = "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")) else if (0 == strcasecmp(argv[1], "album"))
{ {
qp.type = Q_GROUP_ALBUMS; qp.type = Q_GROUP_ALBUMS;