Old 30th September 2020, 00:04   #1
Junior Member
Join Date: Sep 2020
Posts: 2
How do I reset the 'current song metadata'?

Using Shoutcast Server v2.6.0.753, when a stream with inline metadata is connected, I can read the held song metadata with "admin.cgi?sid=1&mode=viewxml&page=5". When the stream disconnects, this same call STILL returns the held song metadata.

In the earlier version of Shoutcast, the song metadata was emptied as soon as the stream disconnected from the Shoutcast server.

I want to emulate this behaviour on the v2.6.0.753 Shoutcast server.

Unfortunately the call of "admin.cgi?mode=resetxml&sid=#" only seems to flush the 'stream' data, but not the held 'song metadata'.

If I send "admin.cgi?mode=resetxml&sid=1" followed by "admin.cgi?sid=1&mode=viewxml&page=5", the response returned STILL contains all the song's metadata from the last time a stream was connected and active.

I can't find a call to permanently flush the 'song metadata' on stream disconnection.

Can you help?

DaveSoundman is offline   Reply With Quote
Old 6th October 2020, 15:44   #2
Forum King
djSpinnerCee's Avatar
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
best way ro do that would be to edit the .conf, comment out the stream def commands, update or force via admin interface, uncomment the stream, and update/force again.
djSpinnerCee is offline   Reply With Quote
Old 16th October 2020, 15:43   #3
Major Dude
dopelabs's Avatar
Join Date: Oct 2006
Location: Silicon Valley
Posts: 539
Send a message via AIM to dopelabs
or you could use admin.cgi?sid=1&mode=viewxml&page=1 and grab the value in <SONGTITLE></SONGTITLE>.

or simply /currentsong?sid=1

this will be empty if there is no source connected to the stream.
dopelabs is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

#song #metadata #flush

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump