[Icecast] hide listener count

Thomas ThomasPrivat92 at gmx.de
Mon Apr 12 16:56:41 UTC 2021

okay i found now a way but it thow me an error, that is maybe a bug.

  icecast from 

that should be the offical stable branch. version 2.4.4

i using this code at status-json.xml tode ide the listener peak, that 
works fine

<xsl:template match="icestats/source/listener_peak">
   <xsl:if test="following-sibling::*"></xsl:if>
   <xsl:if test="not(following-sibling::*)">"dummy":null}</xsl:if>

but if i use this to hide the listeners

<xsl:template match="icestats/source/listeners">
   <xsl:if test="following-sibling::*"></xsl:if>
   <xsl:if test="not(following-sibling::*)">"dummy":null}</xsl:if>

the json throw me an error

SyntaxError: JSON.parse: expected ',' or ']' after array element at line 
1 column 804 of the JSON data

if i cheack the raw data it seems that if i kill listeners the line with 
listenur has no"{" befor to open this argument.

somone has an idea to fix this?

Am 11.04.2021 um 08:14 schrieb Thomas:
> hi there i searching for a way to hide the listener count at the puplis
> status-json.xsl
> i dont want to hide it complet, only hide the listener count, has somone
> a code snipped for me to copy it in?
> i alrdy have found it at status.xsl but it does not change the json...
> and i dont get the syntax of the json, would be glas if somone can 
> help me
> regards
> railgun
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/icecast/attachments/20210412/dccf26b2/attachment.htm>

More information about the Icecast mailing list