Kodi Community Forum
[RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin (/showthread.php?tid=119362)



RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - C.O.D. - 2021-05-20

@black_eagle
Thanks for your answer, very revealing.
Interestingly the station Radio Bob Classic Rock
http://streams.radiobob.de/bob-classicrock/mp3-192/streams.radiobob.de/
is shown as an mp3 in Kodi and track info is also shown (as also in VLC). The debug log says that the retrieved URL is https://bob.hoerradar.de/radiobob-classicrock-mp3-hq.
If I'm playing this one in VLC I don't get any track info even here but the same music.
In any case I think I have to live with it as it is...


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - black_eagle - 2021-05-20

(2021-05-20, 10:22)C.O.D. Wrote: the station Radio Bob Classic Rock

That's a shoutcast stream.  Kodi knows how to get the track/artist info (and art for some shoutcast v2 streams) from shoutcast servers. This is determined from the headers received by Kodi when it first opens the URL.  That info reveals that we are connecting to a shoutcast server so the stream gets re-opened with the correct shoutcast options added to the header that Kodi sends and the data takes a different path through the code to get to the audio player.  Along this path, the artist and track data is extracted.  This doesn't happen with bog-standard mp3 streams which are treated just like a local mp3 file but without trying to read any tags.


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - C.O.D. - 2021-05-20

@black_eagle
Thanks again for another very revieling one 👍


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - emveepee - 2021-05-21

(2021-05-20, 00:47)black_eagle Wrote: Indeed.  The problem here is that Kodi does not look for tags in .mp3 files that are streamed from the internet because in many cases the tags are simply not present.

That is not the problem here.  The server doesn't return the values that Kodi is looking for to resend with Icy-Metadata: 1
Code:
Cache-Control: no-cache, no-store
Content-Type: audio/mpeg
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Server: QuantumCast Streamer (Version v1.10.2 SHA:5023419f0cb48abfa9f29eb27f956ccbb73f11e3 21.05.03 20:36:40)
Vary: Origin
X-Quantumcast-Channelkey: radio21_atam41o_agkt
Date: Thu, 20 May 2021 22:11:45 GMT
Connection: close
Transfer-Encoding: chunked

As a test I added m_state->m_httpheader.GetValue("content-type") == "audio/mpeg" it does play with Shoutcast data

I then tried with this url and it works from a strm file
Code:
https://bestofrockfm.stream.vip/classic/mp3-256/bestofrock.fm|Icy-Metadata=1

Martin


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - C.O.D. - 2021-05-21

@emveepee
Hey, thanks for this useful tip - now I can enjoy these streams in Kodi Smile


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - decK0s - 2021-05-26

Hi,
I'm using kodi on libreelec.
If I want to listen a radio from the add-on with a command line like this:

Code:
curl --header "Content-Type: application/json" --request POST --data '{"jsonrpc": "2.0", "method": "Player.Open", "params": {"item":{"file":"plugin://plugin.audio.radio_de/station/104717"}},"id": 0 }' http://192.168.0.100:8080/jsonrpc
I have got the following answer:

Code:
Error: Kodi: (kodi) Message error, unknown type in OnPlay/OnResume message: 'unknown' from '{"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"type":"unknown"},"player":{"playerid":-1,"speed":1}},"sender":"xbmc"}}'
nothing happens until I ask again the same command line. In this case, radio start but still have a error message:

Code:
Error: Kodi: (kodi) Message error, unknown type in OnPlay/OnResume message: 'unknown' from '{"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"type":"unknown"},"player":{"playerid":0,"speed":1}},"sender":"xbmc"}}'
Does someone has a idea?

I don't have this behavior if i tried to start a web content instead of a radio.de plugin content
Code:
curl --header "Content-Type: application/json" --request POST --data '{"jsonrpc": "2.0", "method": "Player.Open", "params": {"item":{"file":"http://statslive.infomaniak.ch/playlist/radionova/radionova-high.mp3/playlist.m3u"}},"id": 4 }' http://192.168.0.100:8080/jsonrpc

thanks

Original post here


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - myso - 2021-05-27

Hi, 

I'd love to listen to the Funradio Live stream from Slovakia, but it always makes KODI crash. Other streams from the same Radio provider work OK. On the Radio.de site it also plays OK.

Code:
2021-05-27 17:37:14.196 T:3255825280 NOTICE: [xbmcswift2] Request for "/station/13599" matches rule for function "get_stream_url"
2021-05-27 17:37:14.196 T:3255825280 NOTICE: [plugin.audio.radio_de] get_station_by_station_id started with station_id=13599
2021-05-27 17:37:14.196 T:3255825280 NOTICE: [plugin.audio.radio_de] __api_call started with path=v2/search/station, param={'station': '13599'}
2021-05-27 17:37:14.197 T:3255825280 NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://api.rad.io/info/v2/search/station?station=13599
2021-05-27 17:37:14.485 T:3255825280 NOTICE: [plugin.audio.radio_de] get_stream_url result: https://stream.funradio.sk:8000/fun128.mp3
2021-05-27 17:37:14.707 T:3772572544 NOTICE: Librespot: Kodi playback started
2021-05-27 17:37:14.736 T:3172987776 ERROR: CCurlFile::Stat - Failed: SSL peer certificate or SSH remote key was not OK(60) for https://stream.funradio.sk:8000/fun128.mp3
2021-05-27 17:37:14.794 T:3236946816 NOTICE: Librespot: suspended sink 1
2021-05-27 17:37:14.795 T:3236946816 NOTICE: Librespot: librespot stopped
2021-05-27 17:37:14.795 T:3236946816 NOTICE: Librespot: librespot thread stopped
2021-05-27 17:37:14.959 T:3172987776 ERROR: CCurlFile::FillBuffer - Failed: SSL peer certificate or SSH remote key was not OK(60)
2021-05-27 17:37:14.959 T:3172987776 ERROR: CCurlFile::Open failed with code 0 for https://stream.funradio.sk:8000/fun128.mp3:
2021-05-27 17:37:15.126 T:3172987776 ERROR: CCurlFile::FillBuffer - Failed: SSL peer certificate or SSH remote key was not OK(60)
2021-05-27 17:37:15.126 T:3172987776 ERROR: CCurlFile::Open failed with code 0 for https://stream.funradio.sk:8000/fun128.mp3:
2021-05-27 17:37:15.128 T:3172987776 ERROR: Open - failed to open source <https://stream.funradio.sk:8000/fun128.mp3>
2021-05-27 17:37:15.128 T:3172987776 ERROR: Init: Error opening file plugin://plugin.audio.radio_de/station/13599
2021-05-27 17:37:15.128 T:3172987776 ERROR: CAudioDecoder: Unable to Init Codec while loading file https://stream.funradio.sk:8000/fun128.mp3
2021-05-27 17:37:15.128 T:3172987776 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
2021-05-27 17:37:15.353 T:3236946816 NOTICE: [xbmcswift2] Request for "/station/17192" matches rule for function "get_stream_url"
2021-05-27 17:37:15.353 T:3236946816 NOTICE: [plugin.audio.radio_de] get_station_by_station_id started with station_id=17192
2021-05-27 17:37:15.353 T:3236946816 NOTICE: [plugin.audio.radio_de] __api_call started with path=v2/search/station, param={'station': '17192'}
2021-05-27 17:37:15.354 T:3236946816 NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://api.rad.io/info/v2/search/station?station=17192

Thanks

Mike


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - FamShoppa - 2021-06-12

Hello, when I play any of the "AIR" Indian radio stations (AIR Vividh Bharati Bengaluru, AIR FM Rainbow Bengauluru, AIR FM Gold)...they fail to play or crash Kodi!

I'm able to play stations from your "Top Stations" list. So your add-on works for me on certain stations.
I also tried switching skins, back to default "Estuary" and same problem with the Indian radio stations I mentioned.

I have a new Kodi Matrix installation on Nvidia Shield Pro (Android) using either Amber skin or Estuary skin.


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - Jeffers24 - 2021-07-01

I have added a number of stations to 'My Stations' and created a widget in Aeon Nox SiLVO in Kodi 19 to display them on my Radio page.

An option I didn't add is displayed 'Add Custom Station', is there a setting so that I could suppress this being displayed so that icons only show for my stations?

Image


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - C.O.D. - 2021-07-01

I'd also like to see an option like this.
It would also be sufficient to put this item into the context menu (if you ask me) so that it's not visible in the widgets...


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - BreizhReloaded - 2021-07-06

Hello guys! Does this addon provide any PVR integration in order to use the dedicated radio section in Kodi? I couldn't find any at the moment. I can work on a IPTV Manager integration if that sounds interesting for you Smile


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - kobyboy - 2021-07-21

Thanks for the addon but no local stations are populating any solutions Thanks.


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - emrvb - 2021-09-08

@enen92

I have a couple of questions about an implementation detail of this addon I would rather not discuss in public. Is there any chance I could get in touch with you or another maintainer?


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - enen92 - 2021-09-08

Send a PM or reach out at enen92 at kodi.tv. However the code is open and available for everyone and discussions are supposed to be public.


RE: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin - emrvb - 2021-09-08

(2021-09-08, 13:02)enen92 Wrote: Send a PM or reach out at enen92 at kodi.tv. However the code is open and available for everyone and discussions are supposed to be public.

Thanks, I've looked for a PM option but couldn't find one. I guess that could be because I just recently registered. I'll mail you in a bit.