![]() |
#1 |
Junior Member
Join Date: Jan 2015
Posts: 8
|
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! |
![]() |
![]() |
![]() |
#2 |
Join Date: Sep 2003
Posts: 27,873
|
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). |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jan 2015
Posts: 8
|
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 |
![]() |
![]() |
![]() |
#4 |
Join Date: Sep 2003
Posts: 27,873
|
you just need to use &song= and provide no value and that should then clear the title.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jan 2015
Posts: 8
|
DrO. Well it's logical but &song= do not have any effect.
|
![]() |
![]() |
![]() |
#6 |
Join Date: Sep 2003
Posts: 27,873
|
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: |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Jan 2015
Posts: 8
|
XML method works, empty the title and also showing "-" char!
Thank You so much! |
![]() |
![]() |
![]() |
#8 |
Join Date: Sep 2003
Posts: 27,873
|
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). |
![]() |
![]() |
![]() |
#9 |
Junior Member
Join Date: Jan 2015
Posts: 8
|
Well, I set the "-" sign to every track that is not a song, like ads and radio shows.
|
![]() |
![]() |
![]() |
#10 |
Join Date: Sep 2003
Posts: 27,873
|
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).
|
![]() |
![]() |
![]() |
#11 |
Junior Member
Join Date: Jan 2015
Posts: 8
|
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. |
![]() |
![]() |
![]() |
#12 |
Join Date: Sep 2003
Posts: 27,873
|
via which method - the plain text or the xml version ?
|
![]() |
![]() |
![]() |
#13 |
Junior Member
Join Date: Jan 2015
Posts: 8
|
Via text pain works url encoding "%26".
With xml version is not possible to send it in any way. |
![]() |
![]() |
![]() |
#14 |
Join Date: Sep 2003
Posts: 27,873
|
it needs to be specified as &
this is because it needs to be correctly encoded as xml treats < > & ' and " as special characters. |
![]() |
![]() |
![]() |
#15 |
Junior Member
Join Date: Jan 2015
Posts: 8
|
Good!
Thank you very much. Finally everything works well. |
![]() |
![]() |
![]() |
#16 |
Join Date: Sep 2003
Posts: 27,873
|
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.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|