mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 22:46:02 -05:00
[mpd] fix duplicate return of 'nextsong', 'nextsongid' and return
item-id as 'nextsongid'
This commit is contained in:
parent
6d1d2a485c
commit
40da57346f
10
src/mpd.c
10
src/mpd.c
@ -835,15 +835,11 @@ mpd_command_status(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
|||||||
"time: %d:%d\n"
|
"time: %d:%d\n"
|
||||||
"elapsed: %#.3f\n"
|
"elapsed: %#.3f\n"
|
||||||
"bitrate: 128\n"
|
"bitrate: 128\n"
|
||||||
"audio: 44100:16:2\n"
|
"audio: 44100:16:2\n",
|
||||||
"nextsong: %d\n"
|
|
||||||
"nextsongid: %d\n",
|
|
||||||
status.pos_pl,
|
status.pos_pl,
|
||||||
status.item_id,
|
status.item_id,
|
||||||
(status.pos_ms / 1000), (status.len_ms / 1000),
|
(status.pos_ms / 1000), (status.len_ms / 1000),
|
||||||
(status.pos_ms / 1000.0),
|
(status.pos_ms / 1000.0));
|
||||||
status.next_pos_pl,
|
|
||||||
status.next_item_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filescanner_scanning())
|
if (filescanner_scanning())
|
||||||
@ -857,7 +853,7 @@ mpd_command_status(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
|||||||
"nextsong: %d\n"
|
"nextsong: %d\n"
|
||||||
"nextsongid: %d\n",
|
"nextsongid: %d\n",
|
||||||
status.next_pos_pl,
|
status.next_pos_pl,
|
||||||
status.next_id);
|
status.next_item_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user