diff --git a/src/connection.c b/src/connection.c index ce3e453b..ec123f15 100644 --- a/src/connection.c +++ b/src/connection.c @@ -34,7 +34,10 @@ #include "logging.h" #include "xslt.h" #include "fserve.h" + +#include "yp.h" #include "source.h" +#include "geturl.h" #include "format.h" #include "format_mp3.h" @@ -511,6 +514,7 @@ static void handle_metadata_request(client_t *client) thread_mutex_unlock(&(state->lock)); DEBUG2("Metadata on mountpoint %s changed to \"%s\"", mount, value); + stats_event(mount, "title", value); client->respcode = 200; bytes = sock_write(client->con->sock, "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" diff --git a/src/slave.c b/src/slave.c index 80700532..20827402 100644 --- a/src/slave.c +++ b/src/slave.c @@ -38,6 +38,7 @@ #include "client.h" #include "stats.h" #include "logging.h" +#include "geturl.h" #include "source.h" #include "format.h"