View Single Post
Old 29th November 2011, 02:37   #1
MariaClaudia
Junior Member
 
Join Date: Jan 2006
Posts: 12
About the XML tag SONGTITLE

Hi:
I hope that I posting in the right forum. I just start broadcasting with shoutcast and I found a little detail. I use this asp code to show the current song.

Quote:
<%
Function unUDate(intTimeStamp)
varFecha = DateAdd("s", intTimeStamp, "01/01/1970 00:00:00")
unUDate = DateAdd("h", -5, varFecha)
End Function

extURL = "http://123.456.789.123:12345/admin.cgi?pass=xxxxxx&mode=viewxml&decachetime=" & Server.URLEncode(Now)

set xmlDoc = createObject("Msxml.DOMDocument")
xmlDoc.async = false
xmlDoc.setProperty "ServerHTTPRequest", true
xmlDoc.load(extURL)

CurrentSong = xmlDoc.SelectSingleNode("//SONGTITLE").text

varAhoraEmitiendo=Mid(Replace(CurrentSong,"ÿ","°"),1)
varAhoraEmitiendo=Mid(Replace(varAhoraEmitiendo,"°","ó"),1)
%>

<html>
<meta http-equiv="refresh" content="30">

<body text="#FFFFFF">

<div align="left" style="font-family:Arial; font-size: medium;">
<marquee><b><%= varAhoraEmitiendo %></b></marquee>
</div>


</body>
</html>
But the info of the XML tag SONGTITLE is "%artist - %title" and I need to show "%album - %title".

How can I do it?

Please sorry my grammar.
Regards from Lima, Perú
MariaClaudia is offline   Reply With Quote