Kodi Community Forum

Full Version: [RELEASE] Radio Add-on (rad.io, radio.de, radio.fr, radio.pt, radio.es) Music Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
please add a feature that we can add urls of our favorite radio station............
Hello,

Yesterday, I've trying to install de Add-on from the XBMC repository.
Install successfull but, when I've try to launch it, I've a "Python Error : "script python.de" If I remember."

Have you an idea ?

Thanks !

My config : W7 | XBMC Eden
Without an xbmc.log I can't help you, sorry.
Hy!

When i click on the local station, it doesn't work. one window pop up that say: missing addon.py
My log:
Code:
08:53 T:4504  NOTICE: Radio.de scraper: get_most_wanted started with language=english, num_entries=25
15:08:53 T:4504  NOTICE: Radio.de scraper: __get_json started with path=account/getmostwantedbroadcastlists, gets={'sizeoflists': 25}, language=english
15:08:53 T:4504  NOTICE: Radio.de scraper: __urlopen opening url=http://rad.io/info/account/getmostwantedbroadcastlists?sizeoflists=25
15:08:57 T:4504  NOTICE: Radio.de scraper: __urlopen URLError: <urlopen error [Errno 10061] Nem hozható létre kapcsolat, mert a célszámítógép már visszautasította a kapcsolatot>
15:08:57 T:4504  NOTICE: Radio.de scraper: get_most_wanted end
15:08:57 T:4504   ERROR: Error Type: <type 'exceptions.TypeError'>
15:08:57 T:4504   ERROR: Error Contents: 'NoneType' object is unsubscriptable
15:08:57 T:4504   ERROR: Traceback (most recent call last):
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.audio.radio_de\addon.py", line 313, in <module>
                                                plugin.run()
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib\xbmcswift\plugin.py", line 330, in run
                                                self.dispatch(self.path)
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib\xbmcswift\plugin.py", line 129, in dispatch
                                                return view_func(**items)
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.audio.radio_de\addon.py", line 96, in show_local_stations
                                                items = __format_stations(stations['localBroadcasts'])
                                            TypeError: 'NoneType' object is unsubscriptable
15:08:57 T:5180   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.radio_de/local_stations/
15:08:57 T:5180   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.radio_de/local_stations/) failed
15:08:57 T:5752  NOTICE: -->Python Interpreter Initialized<--
15:08:57 T:5752  NOTICE: Radio addon: show_root_menu start
15:08:57 T:5752  NOTICE: Radio addon: show_root_menu end
15:09:01 T:5788  NOTICE: -->Python Interpreter Initialized<--
15:09:01 T:5788  NOTICE: Radio addon: show_local_stations start
15:09:01 T:5788  NOTICE: Radio.de scraper: get_most_wanted started with language=english, num_entries=25
15:09:01 T:5788  NOTICE: Radio.de scraper: __get_json started with path=account/getmostwantedbroadcastlists, gets={'sizeoflists': 25}, language=english
15:09:01 T:5788  NOTICE: Radio.de scraper: __urlopen opening url=http://rad.io/info/account/getmostwantedbroadcastlists?sizeoflists=25
15:09:05 T:5788  NOTICE: Radio.de scraper: __urlopen URLError: <urlopen error [Errno 10061] Nem hozható létre kapcsolat, mert a célszámítógép már visszautasította a kapcsolatot>
15:09:05 T:5788  NOTICE: Radio.de scraper: get_most_wanted end
15:09:05 T:5788   ERROR: Error Type: <type 'exceptions.TypeError'>
15:09:05 T:5788   ERROR: Error Contents: 'NoneType' object is unsubscriptable
15:09:05 T:5788   ERROR: Traceback (most recent call last):
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.audio.radio_de\addon.py", line 313, in <module>
                                                plugin.run()
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib\xbmcswift\plugin.py", line 330, in run
                                                self.dispatch(self.path)
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib\xbmcswift\plugin.py", line 129, in dispatch
                                                return view_func(**items)
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.audio.radio_de\addon.py", line 96, in show_local_stations
                                                items = __format_stations(stations['localBroadcasts'])
                                            TypeError: 'NoneType' object is unsubscriptable
15:09:05 T:5180   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.radio_de/local_stations/
15:09:05 T:5180   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.radio_de/local_stations/) failed
15:09:05 T:5816  NOTICE: -->Python Interpreter Initialized<--
15:09:05 T:5816  NOTICE: Radio addon: show_root_menu start
15:09:05 T:5816  NOTICE: Radio addon: show_root_menu end

what is wrong? Please help me! NodBlush
Your XBMC Proxy Settings are wrong.
Please diable Proxy if you don't need (and have) a Proxy server.

Thanks.
It is work!
Is there any way to login into radio.de? I would love to use my favorites in XBMC... Smile (so I can add a radio station into my favorites on my computer and use it on xbmc next time i am at home Big Grin)
(2012-10-13, 18:54)FreakErn Wrote: [ -> ]Is there any way to login into radio.de? I would love to use my favorites in XBMC... Smile (so I can add a radio station into my favorites on my computer and use it on xbmc next time i am at home Big Grin)

This in on my to-do list. A small problem here is the wording. "Favorites" is XBMC managed but "My Stations" will be the favorites you have in your radio account.
I will announce here when I have the new version ready. This version will also allow to add custom defined station.
nice plugin thx
(2012-10-14, 12:44)sphere Wrote: [ -> ]This in on my to-do list. A small problem here is the wording. "Favorites" is XBMC managed but "My Stations" will be the favorites you have in your radio account.
I will announce here when I have the new version ready. This version will also allow to add custom defined station.

Can't wait Big Grin very cool plugin! Great job!
I have a new version ready for testing - this one will be Version 2.0.0

I rewrote and re-factored most of the code so there could be a few issues - please report any issue here or using github.

One of the biggest change is that you now can add custom stations (user defined stations)! Just go to "My Stations" and choose "Add custom Station" - you need to enter a title, an icon-url (can be local or remote path - or you can leave this empty) and the stream url - this can be a local file (M3U, PLS, STRM) or a remote URL. You can also edit your custom stations later with the context menu Command "Edit Custum Station".

Here is the full Changelog:
Code:
2.0.0 (unreleased)
    - Code Rewrite
    - Possibility to add custom (user defined) Stations
    - Thumbnail View (You can disable in the add-on settings)
    - Change to the xbmcswift2 framework
    - New Icon
    - Possibilty to add Stations to the XBMC Favorites

You can download this Preview Version here.

Have fun,
sphere
Thanks, I've been looking for an addon to replace Shoutcast as they keep changing the stream IDs on me. I tried adding Radio Paradise as a custom station but nothing happens when I tried to play it back.

The URL is http://www.radioparadise.com/musiclinks/rp_128aac.m3u and here's the log:

Code:
09:02:59 T:2954915840  NOTICE: -->Python Interpreter Initialized<--
09:02:59 T:2954915840  NOTICE: '{'
09:02:59 T:2954915840  NOTICE: [xbmcswift2] Request for "/station/Radio+Paradise" matches rule for function "get_stream_url"
09:02:59 T:2954915840  NOTICE: [plugin.audio.radio_de] get_stream_url result: http://www.radioparadise.com/musiclinks/rp_128aac.m3u
09:02:59 T:2954915840   ERROR:  AddItems - called with an invalid handle.
09:02:59 T:2954915840   ERROR:  EndOfDirectory - called with an invalid handle.
09:02:59 T:2897216192   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.radio_de/station/Radio+Paradise]

Any ideas? Thanks!
XBMC doesn't like Playlists files delivered as playable-Items.
Try "http://stream-tx4.radioparadise.com:8012" as stream url (this is one of the streams defined in the M3U Playlist file.
Testing ver 2, things are working well.

Suggestion:
When adding a custom station, is there an "escape" or "exit" for a wrong or blank? Selecting "Done" when blank does not exit the dialoge for me.

Radio station error:
KCRW music - it no longer works as of last week.

Thanks again. This is a must-have plug-in!
(2012-10-27, 18:30)ixnu Wrote: [ -> ]Testing ver 2, things are working well.
Nice Smile
(2012-10-27, 18:30)ixnu Wrote: [ -> ]Suggestion:
When adding a custom station, is there an "escape" or "exit" for a wrong or blank? Selecting "Done" when blank does not exit the dialoge for me.
Im not sure that I get you right. if you leave the title blank the station won't be saved. If you filled the title but not thumb or not url the station will be saved and you need to manually delete it after creating when you want it to be deleted.
(2012-10-27, 18:30)ixnu Wrote: [ -> ]Radio station error:
KCRW music - it no longer works as of last week.
KCRW is broken - but this is not an plugin issue. You can try to report that to KCRW or to radio.de/rad.io/radio.fr support.
Btw. the URL of this station is "http://scfire-ntc-aa04.stream.aol.com/stream/1045" which throws an DNS error.
(2012-10-27, 18:30)ixnu Wrote: [ -> ]Thanks again. This is a must-have plug-in!
Your welcome Smile

regards,
sphere