Only queue the rest of the album on quirky query

This commit is contained in:
ejurgensen 2014-04-18 22:39:17 +02:00
parent 2c16b070ed
commit 365c5a3bc9
2 changed files with 4 additions and 4 deletions

View File

@ -1450,10 +1450,10 @@ dacp_reply_playqueueedit(struct evhttp_request *req, struct evbuffer *evbuf, cha
?command=playnow&index=...&session-id=...
-> play index
And the quirky query from iPad Remote - no sort and no queuefilter
User selected track (artist tab):
And the quirky query from Remote - no sort and no queuefilter
User selected track (Audiobooks):
?command=add&query='dmap.itemid:...'&mode=1&session-id=...
-> clear queue, play itemid and the rest of artist tracks
-> clear queue, play itemid and the rest of album tracks
*/
s = daap_session_find(req, query, evbuf);

View File

@ -760,7 +760,7 @@ player_queue_make_daap(struct player_source **head, const char *query, const cha
mfi = db_file_fetch_byid(id);
if (!mfi)
return -1;
snprintf(buf, sizeof(buf), "f.songartistid = %" PRIi64, mfi->songartistid);
snprintf(buf, sizeof(buf), "f.songalbumid = %" PRIi64, mfi->songalbumid);
free_mfi(mfi, 0);
qp.filter = strdup(buf);
}