getstatus API method to return relayconnected

Read 7174 times
I would like to make a request for the API's "getstatus" method to return if a station is relaying.

I ask because I make use of the "sourceconnected" value to detect if a station is online and broadcasting but it returns 0 when a server is relaying. Could we have a "relayconnected" value returned or perhaps something similar?

It's kind of a bug too because when a server is relaying "title","currentsong","url,",'bitrate","genre" etc.. are all empty despite the server having those details from the relay. If those could be returned too...

Thanks!
Hello Jim

I know this is not a solution, but you could work around this issue by fetching this information from the DNAS xml API directly.
Yeah that's what I'm doing for Shoutcast 2 servers but Shoutcast 1 and Icecast2 servers don't have an xml interface. Icecast2 should have a JSON interface but it doesn't appear to work on the version installed inside Centova Cast.

Also it's just much easier to poll getstatus :)