Release RNE Podcasts add-on for KODI
#1
Music 
Hi,

I have made a music add-on called RNE Podcasts to listen to all the podcasts of the emissions broadcast and produced by the Spanish National Radio RNE, archived and available from its website.

This add-on allows you to navigate though the catalog of programmes sorted by radio channel, genre, and name, as well as to listen to the radio channels live.

From the add-on settings menu, it can be configured the filter list to show all the programmes, or those just currently on emission (the default option).

All the emission podcasts from RNE programmes are completely available for listen, along with their corresponding emission information (as the date of emission, genre, summary description, duration, and rating). Once the emission is played, the automatic playlist is created with the rest of the emissions of the same program listed (as the usual behaviour for the music add-ons), ordered by time from the most recent to the oldest one, so you can enjoy with several hours of listening to your favourite program.

I've made this add-on because I've found the RNE podcasts archive a very valuable source of information, with the hope it would be of some benefit for the (spanish spoken and learners) community, as well as for those that live abroad and wish to listen to the Spanish National Radio channels emissions to feel it a little closer to its country.

Although I've been testing it and improving during some weeks as working stable, this is still a work in progress project, so I would like to be tested by the community and receive some helpful feedback before I release it as stable and summit it to the official repository.

During that time, you can download and install the zip file directly from the GitHub repository using this link plugin.audio.rne.zip, following the standard installation way for any zip file add-on. That link will not change along the bug fixes, and can be used to get the latest release until the add-on is finally uploaded to the official repository.

Any comments, suggestions of improvement, and issue notifications would be very welcome. Please use this forum thread for that, and I'll try to reply as soon as I can.

If you find any problem and wants to let me know it, please activate the debug logs from the add-on settings menu, and post it on this forum thread using a pastebin link.

This thread will be used to provide the official add-on support as well.

Enjoy it!

jamontes
Reply
#2
Hi everyone,

From now on, the RNE Podcasts add-on is available from the official KODI repository (Helix release onwards), so you can install it directly from the KODI Music add-ons menu.

Please, use this forum thread for official support. Any suggestions, issues, or problems detected and reported will be very welcome.

Enjoy it!

jamontes.
Reply
#3
Hello,

thank for the addon is what i was looking for.

I have installed the addon in xbian, raspberry P and have a problem with the addon, when i select radio online and select, for example, radio 3, nothing sound. If i select a podcast i can hear it. This is the errors from kodi.log

13:42:53 T:1961185280 ERROR: CCurlFile::Stat - Failed: URL using bad/illegal format or missing URL(3) for http://radio3.rtveradio.cires21.com/radi...cast.audio
http://radio3.rtveradio.cires21.com/radi...cast.audio
13:42:53 T:1961185280 NOTICE: DVDPlayer: Opening: http://radio3.rtveradio.cires21.com/radi...cast.audio
http://radio3.rtveradio.cires21.com/radi...cast.audio
13:42:53 T:1961185280 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
13:42:53 T:1253045264 NOTICE: Thread DVDPlayer start, auto delete: false
13:42:53 T:1253045264 NOTICE: Creating InputStream
13:42:53 T:1253045264 ERROR: CCurlFile::Stat - Failed: URL using bad/illegal format or missing URL(3) for http://radio3.rtveradio.cires21.com/radi...cast.audio
http://radio3.rtveradio.cires21.com/radi...cast.audio
13:42:53 T:1253045264 ERROR: CCurlFile::FillBuffer - Failed: URL using bad/illegal format or missing URL(3)
13:42:53 T:1253045264 ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
13:42:53 T:1253045264 ERROR: Open - failed to open source <http://radio3.rtveradio.cires21.com/radio3/mp3/icecast.audio
http://radio3.rtveradio.cires21.com/radi...t.audio&gt;
13:42:53 T:1253045264 ERROR: CDVDPlayer::OpenInputStream - error opening [http://radio3.rtveradio.cires21.com/radio3/mp3/icecast.audio
http://radio3.rtveradio.cires21.com/radi...cast.audio]
13:42:53 T:1253045264 NOTICE: CDVDPlayer::OnExit()

Thanks in advance.
Reply
#4
Hi vicglez,

Thanks a lot for point out the error messages. They are of great help to me, as I cannot reproduce the problem into any of my Kodi and XBMC platforms where I've tested the add-on (one Frodo under Fedora 17, one Gotham under Fedora 20, one Helix under Raspbmc, and another Helix under OSMC).

However, I've found (from the logs you've posted me) where the problem is (it has to be with the regular expression to get the URL from the playlist) and fix the problem into a new maintenance release (1.0.1), so hopefully in a few days the add-on will be updated and available from the official repository with the fix. Please make it sure your system has the automatic add-on updates option active, so the RNE add-on will be automatically updated as soon as it is available on the official repository.

Thanks a lot for your help and the logs.

Best regards,

jamontes.
Reply
#5
Hi jamontes,

Thanks for your answer and your very fast solution.

I have just downloaded the addon from you git repository and installed on xbian 1.0 and IT WORKS.

Thanks again.

Best regards,

vicglez.
Reply
#6
Hi vicglez,

I'm glad to hear that. By the way, the add-on is already updated into the official repository (thanks to Martijn), but I can understand you were eager to get the new release working and couldn't wait for the automatic update Wink

Thanks a lot for let me know of the problem. Now the add-on is fixed and working fine for everyone who wants to enjoy it.

Best regards,

jamontes.
Reply
#7
Hi Jamontes,

Five days ago your fantastic addon failed to listen direct channels. Looking at the logs there was a problem with the web direction from where you play radio, in my case radio3. Looking in other forums seems like RNE has changed the url. I've made some changes to your code in order to listen radio, in my town i can't hear radio3. This are the modifications in rne_api.py.

def get_direct_channels():
"""This function makes the direct channels menu."""

# direct_url = 'u3m.s%/se.evtr.eviloidar//:ptth'[::-1]

channel_list = (
( 'Radio Nacional', 'http://195.55.74.205/rtve/radio1.mp3'),
( 'Radio Clásica', 'http://195.55.74.217/rtve/radioclasica.mp3'),
( 'Radio 3', 'http://195.55.74.217/rtve/radio3.mp3'),
( 'Ràdio 4', 'http://195.55.74.217/rtve/radio4.mp3'),
( 'Radio 5', 'http://195.55.74.217/rtve/radio5.mp3'),
( 'Radio Exterior', 'http://195.55.74.210/rtve/radioexterior.mp3'),
)

menu_entries = []
for channel, playlist in channel_list:
menu_item = {
'action' : 'play_audio',
'title' : channel,
'url' : playlist,
}
menu_entries.append(menu_item)

return menu_entries


def get_playable_url(url):
"""This function gets the stream url for direct channels."""

# playable_url_pattern = ')oidua.tsaceci?*.ptth('[::-1]

# buffer_url = l.carga_web(url)
stream_url = url
l.log('get_playable_url has found this URL for direct playback. url: "%s"' % stream_url)

return stream_url

Thanks.
Reply
#8
(2015-12-28, 19:12)vicglez Wrote: Hi Jamontes,

Five days ago your fantastic addon failed to listen direct channels. Looking at the logs there was a problem with the web direction from where you play radio, in my case radio3. Looking in other forums seems like RNE has changed the url. I've made some changes to your code in order to listen radio, in my town i can't hear radio3. This are the modifications in rne_api.py.

def get_direct_channels():
"""This function makes the direct channels menu."""

# direct_url = 'u3m.s%/se.evtr.eviloidar//:ptth'[::-1]

channel_list = (
( 'Radio Nacional', 'http://195.55.74.205/rtve/radio1.mp3'),
( 'Radio Clásica', 'http://195.55.74.217/rtve/radioclasica.mp3'),
( 'Radio 3', 'http://195.55.74.217/rtve/radio3.mp3'),
( 'Ràdio 4', 'http://195.55.74.217/rtve/radio4.mp3'),
( 'Radio 5', 'http://195.55.74.217/rtve/radio5.mp3'),
( 'Radio Exterior', 'http://195.55.74.210/rtve/radioexterior.mp3'),
)

menu_entries = []
for channel, playlist in channel_list:
menu_item = {
'action' : 'play_audio',
'title' : channel,
'url' : playlist,
}
menu_entries.append(menu_item)

return menu_entries


def get_playable_url(url):
"""This function gets the stream url for direct channels."""

# playable_url_pattern = ')oidua.tsaceci?*.ptth('[::-1]

# buffer_url = l.carga_web(url)
stream_url = url
l.log('get_playable_url has found this URL for direct playback. url: "%s"' % stream_url)

return stream_url

Thanks.

Hi Vicglez,

Thanks a lot for let me aware of this problem. I'll review your code modifications, and double check the general working of the add-on in order to avoid skip any other problem related to the website changes. As a side effect of this, I cannot include the IP based URLs you pointed in the code modification because those IPs can move their contents upon demand without notice in a dynamic way and the add-on will stop working again shortly (those IPs belongs to a CDN and thus it will balance their content on a geographycal user location basis). So i must search for another reliable source alternative in order to provide a long term fix.

I really appreciate your efforts and care in keeping this add-on working and point me with any error that pops out as far as they arise, and i glad to know someone took the effort to review my code and provide me a solution at hand. I really thank you for all of this.

I'll be back with a solution and a new release as soon as i can, taking the chance i'm on holidays right now and can take some time to fix the problem.

Once again, thanks a lot for all your help and effort.

Best regards,

jamontes.
Reply
#9
Hi Vicglez,

I've tested your code and found old forum entries with similar sources to the ones you provided me. Some of the IPs have changed along the years, and almost all of the known direct sources stopped working. The point is that i can only get working those of Radio Nacional, Radio Clásica and Radio 3 (using the ones you provided), but cannot get working the rest of channels (at least where i am right now), either using your URLs or others that i've found on the forums. If you get them working or find another source for the latter three (i.e. Radios 4, 5 and Exterior), just let me know and i'll be happy to include them into the code for the next release.

I have to admit that, although i don't like to make use of direct IPs instead of domain named URLs for the media sources, i haven't find any other way by now in order to provide a workaround at short term.

On the other hand, i've realized that the search option stopped working as a consequence of the website layout and the search engine have changed, so i've taken the chance to rewrite the search function in order to get it working again.

I'm finishing the code for the new release, so in a few days it will be available from the official repository. Just let me know if you get the direct sources working for Radios 4, 5 and Exterior, so i can give it a try and include them into the code before submitting it to the official repo.

Once again, many thanks for all your help and time.

Best regards,

jamontes.
Reply
#10
Hi Jamontes,

try this

http://195.55.74.210/rtve/radio4.mp3
http://195.55.74.215/rtve/radioexterior.mp3

I have found it at:

Radio nacional: http://www.listenlive.eu/rneradio1.m3u
Radio Clasica: http://www.listenlive.eu/rneradioclasica.m3u
Radio 3: http://www.listenlive.eu/rneradio3.m3u
Radio 4: http://www.listenlive.eu/rneradio4.m3u
Radio 5 : http://www.listenlive.eu/rneradio5.m3u
Radio exterior: http://www.listenlive.eu/rneradioexterior.m3u
Reply
#11
(2016-01-13, 16:52)vicglez Wrote: Hi Jamontes,

try this

http://195.55.74.210/rtve/radio4.mp3
http://195.55.74.215/rtve/radioexterior.mp3

I have found it at:

Radio nacional: http://www.listenlive.eu/rneradio1.m3u
Radio Clasica: http://www.listenlive.eu/rneradioclasica.m3u
Radio 3: http://www.listenlive.eu/rneradio3.m3u
Radio 4: http://www.listenlive.eu/rneradio4.m3u
Radio 5 : http://www.listenlive.eu/rneradio5.m3u
Radio exterior: http://www.listenlive.eu/rneradioexterior.m3u

Hi Vicglez,

I'm glad to hear from you. That's excellent! It's just what i was looking for! Big Grin

I've the chance to test it on the way over the add-on, and all the channels work fine alike the original URLs, so you have done a really good job in searching for the alternative sources to play.

I'll make the patches and include them for the next release. As i've just made the latest pull request to the official repo a few days ago, i'll must wait for a while before submitting the new release to avoid overload Team Kodi repo maintainers in their sanity check and validation process tasks.

It's a pleasure to work with users so helpful as you in keeping this add-on completely functional.

Best regards,

jamontes.
Reply
#12
Hi Jamontes,

Yesterday the plugin stop to play radio3, this is the error form xbmc.log

11:06:39 T:2932261952 WARNING: CreateLoader - Unsupported protocol(plugin) in plugin://plugin.audio.rne/?url=http%3A%2F%2F195.55.74.217%2Frtve%2Fradio3.mp3&action=play_audio

They have changed the url !!!!

Now is http://195.55.74.211/rtve/radio3.mp3 and is embebbed in the web page, the ip not a domain.

I've found that the range 195.55.74.0-195.55.74.255 is assigned to

inetnum: 195.55.74.0 - 195.55.74.255
netname: FLUMOTION
descr: FLUMOTION SERVICES
descr: Internet Public Addresses
country: ES
admin-c: FLUM1-RIPE
tech-c: FLUM1-RIPE
remarks: rev-srv: name1.fluendo.net
remarks: rev-srv: name2.fluendo.net
status: ASSIGNED PA
mnt-by: MAINT-AS3352
created: 2008-06-03T07:49:17Z
last-modified: 2011-04-20T07:19:10Z

Best regards,

Vicglez
Reply
#13
(2016-01-16, 13:10)vicglez Wrote: Hi Jamontes,

Yesterday the plugin stop to play radio3, this is the error form xbmc.log

11:06:39 T:2932261952 WARNING: CreateLoader - Unsupported protocol(plugin) in plugin://plugin.audio.rne/?url=http%3A%2F%2F195.55.74.217%2Frtve%2Fradio3.mp3&action=play_audio

They have changed the url !!!!

Now is http://195.55.74.211/rtve/radio3.mp3 and is embebbed in the web page, the ip not a domain.

I've found that the range 195.55.74.0-195.55.74.255 is assigned to

inetnum: 195.55.74.0 - 195.55.74.255
netname: FLUMOTION
descr: FLUMOTION SERVICES
descr: Internet Public Addresses
country: ES
admin-c: FLUM1-RIPE
tech-c: FLUM1-RIPE
remarks: rev-srv: name1.fluendo.net
remarks: rev-srv: name2.fluendo.net
status: ASSIGNED PA
mnt-by: MAINT-AS3352
created: 2008-06-03T07:49:17Z
last-modified: 2011-04-20T07:19:10Z

Best regards,

Vicglez

Hi vicglez,

Thanks a lot for popping out this issue. As i was afraid of, the server IP tends to change from time to time within the same CDN domain, and that was the reason i wouldn't like to include the IP URLs into the code, but using the domain name ones as the best way to keep the code clean and stable at long term.

As you have provided me with the domain name URLs source alternative, i've included them into rel v1.0.3 of the add-on (you can have a look at my GitHub repo). Now that the server IP has changed so the listenlive.eu playlist for Radio3 is out of date, and you discovered by your own the new IP location for the channel, i would suggest you to send a notification mail to the Listenlive contact website (by using the Contact button close to the RNE Radio3 row) notifying with the right location in order to let them update the playlist resolved URL and thus both, the add-on and the listenlive.eu website could benefits from it at the same time (and all the credits by the way will be yours, of course Wink). This would be an elegant way to recover the Radio3 direct play on the add-on without changing the code, as the domain URL playlist for the direct channel will remains unchanged, but it will resolve to the right IP URL location whenever the direct channel play is requested on the add-on.

I've checked the rest of channels using the updated add-on release and they work fine as expected, thanks to your contribution.

Please, send the email to listenlive.eu letting him know with the change and i'll summit in the meantime the new release to the official Kodi repo in order to let the changes available to the users.

Once again, thanks a lot in helping me to keep the add-on working fine as usual.

Best regards,

jamontes.
Reply
#14
Hi Jamontes,

I've found it !!!!!

Radio nacional: http://radio1-fme.rtve.stream.flumotion....o1.mp3.m3u
Radio Clasica: http://radioclasica-fme.rtve.stream.flum...ca.mp3.m3u
Radio3: http://radio3-fme.rtve.stream.flumotion....o3.mp3.m3u
Radio 4: http://radio4-fme.rtve.stream.flumotion....o4.mp3.m3u
Radio 5 : http://radio5-fme.rtve.stream.flumotion....o5.mp3.m3u
Radio exterior: http://radioexterior-fme.rtve.stream.flu...or.mp3.m3u

Best regards,

vicglez.
Reply
#15
(2016-01-20, 20:18)vicglez Wrote: Hi Jamontes,

I've found it !!!!!

Radio nacional: http://radio1-fme.rtve.stream.flumotion....o1.mp3.m3u
Radio Clasica: http://radioclasica-fme.rtve.stream.flum...ca.mp3.m3u
Radio3: http://radio3-fme.rtve.stream.flumotion....o3.mp3.m3u
Radio 4: http://radio4-fme.rtve.stream.flumotion....o4.mp3.m3u
Radio 5 : http://radio5-fme.rtve.stream.flumotion....o5.mp3.m3u
Radio exterior: http://radioexterior-fme.rtve.stream.flu...or.mp3.m3u

Best regards,

vicglez.

Hi Vicglez,

That's Excellent!!! Big Grin

I've just updated the add-on and tested it fine. The new release V1.0.4 is available at GitHub and the pull request to Kodi-Team for submitting it to the official repo is sent, so hopefully in a few days the definite release will be available for everyone.

Now the add-on looks like pretty stable at long term, as those URLs should resolve to the original CDN IP like URLs without any other intermediate source as listenlive.eu.

I'm very impressed you have found the right URLs. Congratulations!!!

Thanks a lot for all the help and best regards,

jamontes.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
RNE Podcasts add-on for KODI00
This forum uses Lukasz Tkacz MyBB addons.