From stream URL to station info

Paul Webster

New member
Hello,
This is a slightly unusual question.
I have a plugin for Logitech Media Server (LMS) that tries to show additional information when a user is listening to a radio stream.
For example - showing cover art for the track that is now playing.

For streams that play via radioboss there is a naming convention
<serverid>.radioboss.fm/stream/<useridwithinserver>/stream (or similar)
From that I can make an API call to query things ...
<serverid>.radioboss.fm/w/nowplayinginfo?u=<useridwithinserver>
However, I do not see a call that I could make that would return the station info.

In other words something like
<serverid>.radioboss.fm/w/stationinfo?u=<useridwithinserver>
or
radioboss.fm/w/stationinfo?s=<serverid>&u=<useridwithinserver>

ideally it would return the same data as the search results - but for a single station ... something like

{
"name": "Station Name",
"description": "Station Description",
"path": "xxx",
"genre": "Pop",
"url": "https://somewhere",
"links": {
"m3u": "http://<serverid>.radioboss.fm/playlist/<useridwithinserver>/stream.m3u",
"m3u_ssl": "https://<serverid>.radioboss.fm/playlist/<useridwithinserver>/stream.m3u",
"pls_uri": "<serverid>.radioboss.fm/playlist/<useridwithinserver>/stream.pls",
"http": "http://<serverid>.radioboss.fm:80<useridwithinserver>/stream",
"ssl": "https://<serverid>.radioboss.fm:180<useridwithinserver>/stream",
"port80": "http://<serverid>.radioboss.fm/stream/<useridwithinserver>",
"port443": "https://<serverid>.radioboss.fm/stream/<useridwithinserver>",
"page": "https://<serverid>.radioboss.fm/u/<useridwithinserver>",
"artwork": "https://<serverid>.radioboss.fm/w/artwork/<useridwithinserver>.png",
"stationlogo": "https://<serverid>.radioboss.fm/stationlogo/{{@user_id}}.png",
"api": "https://<serverid>.radioboss.fm/"
},
"streamlink": "https%3A%2F%2F<serverid>.radioboss.fm%3A180<useridwithinserver>%2Fstream",
"stationlogo": "https://<serverid>.radioboss.fm/stationlogo/<useridwithinserver>.png"
}
where the id fields are replaced by real values ... although I can generate most from the URL ... but then I would be able to show the station name and description.

Is there a call I could make ... or could you add one?
 
Back
Top