Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   Send Metadata to Shoutcast V2 (http://forums.winamp.com/showthread.php?t=380567)

maxlom 16th February 2015 14:09

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

DrO 16th February 2015 14:11

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.

maxlom 16th February 2015 15:04

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?

DrO 16th February 2015 15:07

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.

maxlom 16th February 2015 15:31

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!

DrO 20th February 2015 02:35

http://forums.winamp.com/showpost.ph...04&postcount=6


All times are GMT. The time now is 14:34.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.