mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 00:23:23 -05:00
[mpd] Return virtual path to clients in 'sticker find'
This commit is contained in:
parent
dec625ec30
commit
9165cfc5da
@ -3444,9 +3444,9 @@ mpd_sticker_find(struct evbuffer *evbuf, int argc, char **argv, char **errmsg, c
|
|||||||
|
|
||||||
rating /= MPD_RATING_FACTOR;
|
rating /= MPD_RATING_FACTOR;
|
||||||
ret = evbuffer_add_printf(evbuf,
|
ret = evbuffer_add_printf(evbuf,
|
||||||
"file: file:%s\n"
|
"file: %s\n"
|
||||||
"sticker: rating=%d\n",
|
"sticker: rating=%d\n",
|
||||||
dbmfi.path,
|
(dbmfi.virtual_path + 1),
|
||||||
rating);
|
rating);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
DPRINTF(E_LOG, L_MPD, "Error adding song to the evbuffer, song id: %s\n", dbmfi.id);
|
DPRINTF(E_LOG, L_MPD, "Error adding song to the evbuffer, song id: %s\n", dbmfi.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user