1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-02-02 15:07:36 -05:00

Update: Log a warning if a client sends song and artist/title in the same metadata request

This commit is contained in:
Philipp Schafft 2022-02-25 14:27:52 +00:00
parent 5bd33883de
commit 79bc367769

View File

@ -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 {