mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-14 00:10:10 -04:00
add songs for album or artist ordered by album
This commit is contained in:
parent
2391838ea1
commit
4c5abdac5e
@ -1355,6 +1355,12 @@ dacp_reply_playqueueedit_add(struct evhttp_request *req, struct evbuffer *evbuf,
|
|||||||
{
|
{
|
||||||
sort = evhttp_find_header(query, "sort");
|
sort = evhttp_find_header(query, "sort");
|
||||||
|
|
||||||
|
// if sort param is missing and an album or artist is added to the queue, set sort to "album"
|
||||||
|
if (!sort && (strstr(editquery, "daap.songalbumid:") || strstr(editquery, "daap.songartistid:")))
|
||||||
|
{
|
||||||
|
sort = "album";
|
||||||
|
}
|
||||||
|
|
||||||
queuefilter = evhttp_find_header(query, "queuefilter");
|
queuefilter = evhttp_find_header(query, "queuefilter");
|
||||||
|
|
||||||
querymodifier = evhttp_find_header(query, "query-modifier");
|
querymodifier = evhttp_find_header(query, "query-modifier");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user