[mpd] fix command list for albumartist
This commit is contained in:
parent
b7d5b1650e
commit
a268f836e7
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue