1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-26 02:50:26 +00:00

Fix: song numbering in search_queue function

This commit is contained in:
jcorporation 2018-11-15 20:59:38 +00:00
parent 13187e4c3a
commit 4a6e0de158

View File

@ -2219,7 +2219,7 @@ int mympd_search_queue(char *buffer, char *mpdtagtype, unsigned int offset, char
if (entity_count > offset && entity_count <= offset + config.max_elements_per_page) { if (entity_count > offset && entity_count <= offset + config.max_elements_per_page) {
if (entities_returned++) if (entities_returned++)
len += json_printf(&out, ", "); len += json_printf(&out, ", ");
len += json_printf(&out, "{type: song, id: %d, pos: %d, ", len += json_printf(&out, "{type: song, id: %d, Pos: %d, ",
mpd_song_get_id(song), mpd_song_get_id(song),
mpd_song_get_pos(song) mpd_song_get_pos(song)
); );