Force sane sorting in group replies

(because Hyperfine Remote will ask for artists sorted by album...)
This commit is contained in:
ejurgensen 2013-12-03 23:35:36 +01:00
parent a30069c0c7
commit c6119c5aa5

View File

@ -1531,11 +1531,13 @@ daap_reply_groups(struct evhttp_request *req, struct evbuffer *evbuf, char **uri
{ {
tag = "agar"; tag = "agar";
qp.type = Q_GROUP_ARTISTS; qp.type = Q_GROUP_ARTISTS;
qp.sort = S_ARTIST;
} }
else else
{ {
tag = "agal"; tag = "agal";
qp.type = Q_GROUP_ALBUMS; qp.type = Q_GROUP_ALBUMS;
qp.sort = S_ALBUM;
} }
ret = evbuffer_expand(evbuf, 61); ret = evbuffer_expand(evbuf, 61);