Old 29th November 2011, 01:37   #1
Junior Member
Join Date: Jan 2006
Posts: 12
About the XML tag SONGTITLE

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.

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

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


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

<body text="#FFFFFF">

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

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
Old 29th November 2011, 09:57   #2
Join Date: Sep 2003
Posts: 27,873
unless the source is providing the title in the "%album - %title" format then the currentsong will not work in the manner you're wanting as you seem to be working against a v1 DNAS.

if you use a v2 DNAS and a v2 Source then you can get the metadata from it which depending on what the Source was able to get will provide more metadata from the file tag so you can then create "%album - %title" yourself.

DrO is offline   Reply With Quote
Old 29th November 2011, 12:02   #3
Junior Member
Join Date: Jan 2006
Posts: 12
Thanks a lot!!!!!!!
MariaClaudia is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Site Design

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