Old 16th February 2015, 14:09   #1
maxlom
Junior Member
 
Join Date: Jan 2008
Posts: 6
Send Metadata to Shoutcast V2

Dear Forum,

I would like to use the metadata to a Shoutcast server V2, following the XML Data Specification: http://wiki.shoutcast.com/wiki/SHOUT..._Specification

I use this string:
HTML Code:
http://address:port/admin.cgi?sid=1&pass=(Source-password)&mode=updinfo&type=xml&song=mytitle
And this works! This is the answer of the server:

<SHOUTCASTSERVER>
<SONGMETADATA>
<TIT2>mytitle</TIT2>
</SONGMETADATA>
</SHOUTCASTSERVER>

But I would like to use the other parameter, like <TPE1>, <TCON>, ecc..

If I send:
HTML Code:
http://address:port/admin.cgi?sid=1&pass=(Source-password)&mode=updinfo&type=xml&TIT2=mytitle&TPE1=myauthor&TALB=myalbum
this string not works.

Where is the mistake?

Thank you in advance for your reply!

Regards, Massimo
maxlom is offline   Reply With Quote
Old 16th February 2015, 14:11   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
look at the documentation provided with the DNAS (preferably for the current 2.x release) and not the wiki page as it's not correct for what the current DNAS release expects (as there is no need to be setting type=xml since the DNAS 2.2 release).

also if you're trying to send xml metadata (which most listener clients cannot / will not be able to make use off), you need to send valid xml and not parametrised values.
DrO is offline   Reply With Quote
Old 16th February 2015, 15:04   #3
maxlom
Junior Member
 
Join Date: Jan 2008
Posts: 6
Thank you for your reply!
I looked at the documentation provided with the latest DNAS. I deleted 'type=xml' and I found the parameter 'url', other than 'song'. So this is my new working string:

HTML Code:
http://address:port/admin.cgi?sid=1&pass=(Source-password)&mode=updinfo&song=mysong&url=www.myurl.com
With this answer from the server:

<SHOUTCASTSERVER>
<SONGMETADATA>
<TIT2>mysong</TIT2>
<URL>http://www.myurl.com</URL>
</SONGMETADATA>
</SHOUTCASTSERVER>

But I tried again parameters like talb, tpe1, ecc without success. Where I can found a list with the right parameters?
maxlom is offline   Reply With Quote
Old 16th February 2015, 15:07   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
you have to send XML as the song parameter to set those values (as the docs detail).

you're using the legacy style which does not support those values and that's why you're only seeing the TIT2 field. and again, unless the client actually supports those additional fields (which only Winamp partially did), it's somewhat pointless trying to set them unless you've got something that can make use off them.
DrO is offline   Reply With Quote
Old 16th February 2015, 15:31   #5
maxlom
Junior Member
 
Join Date: Jan 2008
Posts: 6
Yes, I have to send many parameters like: author, song, cover image (!), cd title, cd label, author website, amazon link, itunes link, ecc.. and I would like to retrieve this information in json or xml from DNAS to display it on the site or in a app.

Now it's clear that I haven't to use the legacy style, but I don't understand how I can send XML as song parameter to DNAS (I know only how to read them). Please, could you provide me a simple example? Unfortunately I do not find in the documentation.. thank you!
maxlom is offline   Reply With Quote
Old 20th February 2015, 02:35   #6
DrO
 
Join Date: Sep 2003
Posts: 27,873
http://forums.winamp.com/showpost.ph...04&postcount=6
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

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