[mpd] Return virtual path to clients in 'sticker find'

This commit is contained in:
chme 2017-12-10 10:34:03 +01:00 committed by ejurgensen
parent dec625ec30
commit 9165cfc5da

View File

@ -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);