From ae446046f5671af1c301bd7887eadb6d381d64b5 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 6 Aug 2017 17:50:54 +0200 Subject: [PATCH] [mpd] Notify mpd clients on library update events --- src/mpd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mpd.c b/src/mpd.c index afb4023a..3dc5b91a 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -607,6 +607,10 @@ mpd_command_idle(struct evbuffer *evbuf, int argc, char **argv, char **errmsg) { client->events |= LISTENER_DATABASE; } + else if (0 == strcmp(argv[i], "update")) + { + client->events |= LISTENER_UPDATE; + } else if (0 == strcmp(argv[i], "player")) { client->events |= LISTENER_PLAYER; @@ -638,7 +642,7 @@ mpd_command_idle(struct evbuffer *evbuf, int argc, char **argv, char **errmsg) } } else - client->events = LISTENER_PLAYER | LISTENER_QUEUE | LISTENER_VOLUME | LISTENER_SPEAKER | LISTENER_OPTIONS; + client->events = LISTENER_PLAYER | LISTENER_QUEUE | LISTENER_VOLUME | LISTENER_SPEAKER | LISTENER_OPTIONS | LISTENER_DATABASE | LISTENER_UPDATE | LISTENER_STORED_PLAYLIST; idle_clients = client;