mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 16:25:03 -05:00
commit
7a9b8d5c63
@ -1407,7 +1407,7 @@ mpd_command_seekid(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
|||||||
|
|
||||||
//TODO Allow seeking in songs not currently playing
|
//TODO Allow seeking in songs not currently playing
|
||||||
player_get_status(&status);
|
player_get_status(&status);
|
||||||
if (status.id != id)
|
if (status.item_id != id)
|
||||||
{
|
{
|
||||||
ret = asprintf(errmsg, "Given song is not the current playing one, seeking is not supported");
|
ret = asprintf(errmsg, "Given song is not the current playing one, seeking is not supported");
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
@ -1517,7 +1517,7 @@ mpd_queueitem_make(char *path, int recursive)
|
|||||||
|
|
||||||
qp.type = Q_ITEMS;
|
qp.type = Q_ITEMS;
|
||||||
qp.idx_type = I_NONE;
|
qp.idx_type = I_NONE;
|
||||||
qp.sort = S_ALBUM;
|
qp.sort = S_ARTIST;
|
||||||
|
|
||||||
if (recursive)
|
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));
|
memset(&qp, 0, sizeof(struct query_params));
|
||||||
|
|
||||||
qp.type = Q_ITEMS;
|
qp.type = Q_ITEMS;
|
||||||
qp.sort = S_NAME;
|
qp.sort = S_ARTIST;
|
||||||
qp.idx_type = I_NONE;
|
qp.idx_type = I_NONE;
|
||||||
|
|
||||||
mpd_get_query_params_find(argc - 1, argv + 1, &qp);
|
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));
|
memset(&qp, 0, sizeof(struct query_params));
|
||||||
|
|
||||||
qp.type = Q_ITEMS;
|
qp.type = Q_ITEMS;
|
||||||
qp.sort = S_NAME;
|
qp.sort = S_ARTIST;
|
||||||
qp.idx_type = I_NONE;
|
qp.idx_type = I_NONE;
|
||||||
|
|
||||||
mpd_get_query_params_search(argc - 1, argv + 1, &qp);
|
mpd_get_query_params_search(argc - 1, argv + 1, &qp);
|
||||||
|
@ -460,8 +460,8 @@ queue_next(struct queue *queue, unsigned int item_id, char shuffle, enum repeat_
|
|||||||
item = queueitem_get_byitemid(queue, item_id);
|
item = queueitem_get_byitemid(queue, item_id);
|
||||||
|
|
||||||
if (!item)
|
if (!item)
|
||||||
// Item not found
|
// Item not found, start playing from the start of the queue
|
||||||
return NULL;
|
item = queue->head;
|
||||||
|
|
||||||
if (r_mode == REPEAT_SONG && item != queue->head)
|
if (r_mode == REPEAT_SONG && item != queue->head)
|
||||||
return item;
|
return item;
|
||||||
|
Loading…
Reference in New Issue
Block a user