I just did an echo -a %t in the sockread, and before all that crap I got:
ICY 200 OK
icy-notice1:
This stream requires Winamp
icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8
icy-name:Titan Sounds
icy-genre:Various
icy-url:http://www.titansounds.com
content-type:audio/mpeg
icy-pub:1
icy-br:56
Not sure what to do with it though.
Edit: ah, I guess you have to add this to the sockopen: sockwrite -n $sockname User-Agent: SHOUTcast Song Status (Mozilla Compatible)
But just check out the other shoutcast snippets, it's pointless revising this one.