From abc689a7e1d471a57d5f2c11ff88223f4a821a99 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 1 Nov 2015 11:46:54 +0100 Subject: [PATCH] [mpd] fix sort in queue after adding songs with findadd and searchadd commands Always add songs sorted by artist, album, disc, track. Adding by title is almost never the expected order of songs. --- src/mpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mpd.c b/src/mpd.c index cc52921e..d0ae4e6c 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -1517,7 +1517,7 @@ mpd_queueitem_make(char *path, int recursive) qp.type = Q_ITEMS; qp.idx_type = I_NONE; - qp.sort = S_ALBUM; + qp.sort = S_ARTIST; if (recursive) { @@ -2499,7 +2499,7 @@ mpd_command_findadd(struct evbuffer *evbuf, int argc, char **argv, char **errmsg memset(&qp, 0, sizeof(struct query_params)); qp.type = Q_ITEMS; - qp.sort = S_NAME; + qp.sort = S_ARTIST; qp.idx_type = I_NONE; mpd_get_query_params_find(argc - 1, argv + 1, &qp); @@ -2973,7 +2973,7 @@ mpd_command_searchadd(struct evbuffer *evbuf, int argc, char **argv, char **errm memset(&qp, 0, sizeof(struct query_params)); qp.type = Q_ITEMS; - qp.sort = S_NAME; + qp.sort = S_ARTIST; qp.idx_type = I_NONE; mpd_get_query_params_search(argc - 1, argv + 1, &qp);