xiph / Icecast-Server

Icecast streaming media server (Mirror) - Please report bugs at https://gitlab.xiph.org/xiph/icecast-server/issues
https://icecast.org
GNU General Public License v2.0
471 stars 130 forks source link

inconsistencies in status-json.xsl #12

Closed Yamakaky closed 2 years ago

Yamakaky commented 7 years ago

That makes it harder to handle that it should be. I suggest always generating a "sources" key as an array of objects (empty if no sources).

Also, I forgot to record it but at one time the generated json wasn't valid. Don't you wan't to use a json lib? It should solve this point easily.

ePirat commented 7 years ago

This is not so easy to solve at the moment as the main and internally used format is XML.

phschafft commented 2 years ago

The status-json.xsl was replaced by the publicstats interface. Therefore closing this ticket as it is about now legacy parts.