I have a shoutcast server, but also a flashserver for my radio. Just as a hobby... The users for the shoutcast server, I can get with the shoutcast.tcl, like always. But now that I have the flashserver, I am not able to show the current listeners of that flashserver in the irc channel, which I would love to show... I have a code to get the listeners, but it's html, so I don't know how to add this to the tcl, to show the correct number in total en also seperate...
Like: Total Listeners: 50 ( Winamp: 25 ; Flash: 25 )
See below the code, that is showing my listerners on a webpage. How can I get the users that are showing on this page also in the number of the shoutcast.tcl ??
Shoutcast.tcl
Code: Select all
if {$oldcurlist != $repl} {
poststuff privmsg " »» There are [lindex $repl 1] Listeners "
}}
Code: Select all
<script type="text/javascript" src="http://media.streamingpulse.biz:2000/system/misc/scripts/streaminformation.js.php?id=42"></script>
<table border="1" width="250">
<tr>
<th><script>document.write(StreamInformation.SONGTITLE())</script></th>
</tr>
<tr>
<td align="center">
<script>document.write(StreamInformation.CURRENTLISTENERS() +"/"+ StreamInformation.MAXLISTENERS() +" Listeners @ "+ StreamInformation.BITRATE() +"Kbps")</script>
</td>
</tr>
</table>
Thanks and have a nice day.