![]() |
Shoutcastv2 - v1 protocol - Http title update
Hi,
I'm using a http query method to update now playing title. code: The problem is that I want to remove the title in some situations and also I want to set it to "-". If I do the server says that is invalid input. Before when I was using Edcast for streamit worked and it was setting the "-" as title.code: I tried with URL encoding like but no luck. But for example the char is accepted when not alone. For examplecode: works.code: What do I need to query to get the title empty or "-" ? Thank You in advance! |
the DNAS version being used is...?
as the DNAS (depending on the version) will filter out title updates which are deemed to be nonsense in-order to provide better data to the listeners and also for what the SHOUTcast platform wants to provide via it's API. also please check where you're posting, i've now moved this into the SHOUTcast sub-forum instead of where it was posted (in the Winamp sub-forum). |
Version: SHOUTcast DNAS/posix(linux x64) v2.4.2.16
Ok filtring data but there must be a way to clear the now playing filed... Thank You |
you just need to use &song= and provide no value and that should then clear the title.
|
DrO. Well it's logical but &song= do not have any effect.
|
then there's probably a bug in the build (i've only tried it against a current internal build rather than build 167).
the only other option is to try sending an empty xml title update and see if that works e.g. code: |
XML method works, empty the title and also showing "-" char!
Thank You so much! |
well that's good that method works but that's a bug if that method is allowing through the dash only.
why are you even needing to set the title like that ? as it doesn't make for a very nice client experience (if anything, clearing the title is better as clients which can show the in-stream metadata tend to revert to the station name if there's no title). |
Well, I set the "-" sign to every track that is not a song, like ads and radio shows.
|
personally i'd clear the song title completely for such cases then so any applicable clients will revert to the station name rather than just showing as a dash (which makes it look like something has gone wrong imho).
|
Yea, I will change it, dont remember why I started this way. Maybe a problem with Edcast.
But I have another problem with "&" now. If there is a & it does not update, also tried with "%26" but nothing. |
via which method - the plain text or the xml version ?
|
Via text pain works url encoding "%26".
With xml version is not possible to send it in any way. |
it needs to be specified as &
this is because it needs to be correctly encoded as xml treats < > & ' and " as special characters. |
Good!
Thank you very much. Finally everything works well. |
i've now replicated the non-xml title clearing issue and that has been fixed for the next DNAS release. there's a few other things that will also need to be fixed, mainly with the xml handling, but catching the non-xml title issue is at least sorted now.
|
| All times are GMT. The time now is 15:59. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.