From 9165cfc5dac55ac3427ea2fe2ced45afcd63e435 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 10 Dec 2017 10:34:03 +0100 Subject: [PATCH] [mpd] Return virtual path to clients in 'sticker find' --- src/mpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpd.c b/src/mpd.c index 67a14377..eff63a92 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -3444,9 +3444,9 @@ mpd_sticker_find(struct evbuffer *evbuf, int argc, char **argv, char **errmsg, c rating /= MPD_RATING_FACTOR; ret = evbuffer_add_printf(evbuf, - "file: file:%s\n" + "file: %s\n" "sticker: rating=%d\n", - dbmfi.path, + (dbmfi.virtual_path + 1), rating); if (ret < 0) DPRINTF(E_LOG, L_MPD, "Error adding song to the evbuffer, song id: %s\n", dbmfi.id);