From 79bc367769905d43935bdf3f276f5026331efd39 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 25 Feb 2022 14:27:52 +0000 Subject: [PATCH] Update: Log a warning if a client sends song and artist/title in the same metadata request --- src/admin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/admin.c b/src/admin.c index d681ec59..2078ffb5 100644 --- a/src/admin.c +++ b/src/admin.c @@ -1164,6 +1164,10 @@ static void command_metadata(client_t *client, if (same_ip && plugin && plugin->set_tag) { if (song) { + if (artist || title) { + ICECAST_LOG_WARN("Metadata request mountpoint %H contains \"song\" but also \"artist\" and/or \"title\"", source->mount); + } + plugin->set_tag (plugin, "song", song, charset); ICECAST_LOG_INFO("Metadata on mountpoint %H changed to \"%H\"", source->mount, song); } else {