New Script (and Plugin) BBC PodRadio

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
BigBellyBilly Offline
Skilled Python Coder
Posts: 900
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #1
Displays and plays available BBC Podcast and Radio content streams.

Its obviously aimed at UK users, but may interest others.

Script Usage:
1. Pick a DIRECTORY (e.g. Browse Radio by radio stations)

2. Pick a CATEGORY (e.g. BBC 6 Music)

This finds and displays a list of available STREAMS

3. Select a STREAM and playback starts.

Pretty simple but effective.

Also included is a My Music Plugin version (my first Smile ) , which provides the same information without a fancy GUI. This can be found in the installation zip in the plugin folder. You will need a XBMC build from Sept. '07 onwards thats supports Plugins.

PLUGIN INSTALLATION:
====================
1. Create subfolder XBMC\Plugins\music\BBC PodRadio
2. Copy included BBC Podradio\Plugin\default.py to XBMC\Plugins\music\BBC PodRadio\default.py
3. In XBMC My Music, Add Source, Browse to Music Plugins, select BBC PodRadio, OK

PLUGIN USAGE:
=============
1. Goto My Music
2. select plugin to run it

NB. Radio shows are Realmedia streams and as such take a while to initially fill the player cache. Be patient.


I've got a version in the works that's based around WindowXML, but as its my first attempt using that, its not ready yet. (if that means nothing to you, just ignore it)

Any problems let me know.
Cheers.
BBB

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
kpatm Offline
Junior Member
Posts: 48
Joined: Sep 2006
Reputation: 0
Post: #2
Where's the download link Billy?
find quote
Johnnyfive Offline
Junior Member
Posts: 39
Joined: Aug 2007
Reputation: 4
Location: Strasbourg, France
Post: #3
Thanks for writing the script it's something I've been wanting for a while. I've noticed a couple of bugs when I run it. There are many links called by the day of the week in the listen again streams when the name of the show should be visible to distinguish between them e.g. 'Jo Wiley - MON' in the Radio One links.

The "Local Radio Stations (40)" in the radio station list doesn't return a further list of stations only a "No Streams Found" dialog.

Also it would be cool if the streams to live radio were available too.
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 347
Joined: Jul 2007
Reputation: 4
Location: Bremen, Germany
Post: #4
kpatm Wrote:Where's the download link Billy?

I guess it's this one?
http://www.xbmcscripts.com/index.php?opt...dio%20v1.0
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 900
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #5
yes, that's the link.

Johnnyfive: yes I've seen those too. I need to improve the scrapping of the streams page. Will also look at the problem with the 'local radio station' and the possibility of finding the 'live' streams.

cheers for the feedback.

The WindowsXML based version is coming along nicely, animations and skinnable etc. Smile

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 900
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #6
BBC PodRadio updated to v1.1 available now on www.xbmcscripts.com

Changes:
Improved scrapping of streams, stops some hangs in some instances.
Better displaying or Day Of The Week links.
Added 'Live Radio'.

(plugin also updated with same changes)

cheers
BBB

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
(This post was last modified: 2007-10-11 11:43 by BigBellyBilly.)
find quote
johnnygal Offline
Junior Member
Posts: 40
Joined: Nov 2005
Reputation: 0
Thumbs Up   
Post: #7
BBB,

Cracking job! A superb script, works great.

One suggestion/request please...can we have a scrollbar in the main window so we can tell when there are more podcasts available. You can only tell there are more by pressing "down" and seeing if the page scrolls when you get to the bottom.

Apart from that - this script is brilliant - icons, durations, easy selection by genre/station, nice layout... - excellent!!!


Cheers.
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 900
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #8
I'm rewriting the script to be WindowXML based (skinnable) and I've added in scrollbars for the Categories (in footer) and the Streams lists. Some nice anims too.

thanks for the feedback.

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
bassquake Offline
Junior Member
Posts: 27
Joined: Aug 2007
Reputation: -10
Post: #9
Great script. But I think the links have changed on the bbc site. I cant seem to run any previous shows. Live works though.

It says: "Download Failed. No Media Link Found".

Be great to have this fixed, I always listen to it. Thanks.
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 900
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #10
your right. site change. will work on it asap.

that's the trouble with scraping !

cheers
BBB

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #11
Does your script have features not available in the plugin?

If so what. I'm trying to see what other features plugins could use.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
jonathh Offline
Junior Member
Posts: 14
Joined: Oct 2007
Reputation: 0
Post: #12
Hey guy!

Fantastic script, LOVE IT!

Problem I am having tho, and I had the same problem with the other BBC radio scrapper... It won't play radio 2...? It plays the message from 'the voice of the balls' about the fact you are listening to radio 2.... then dead.. nothing.

Any ideas?

Cheers Undecided

P.s. I can not confirm nor deny that I listen to radio 2.
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 900
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #13
I uploaded v2 to xbmcscripts.com last night, might not appear for a couple of days, but will post when it does. It does fix a few stream scrapping problems (among other things like being skinable, self installing Plugin etc)

I'll assume your referring to Live radio (as opposed to the Listen Again) - but your right, some of them have an introduction then stop, others just goto the actual Live feed.
Not sure what to do about that yet.

Being a TOG or TYG no shame mate Wink

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
(This post was last modified: 2007-10-18 11:44 by BigBellyBilly.)
find quote
jonathh Offline
Junior Member
Posts: 14
Joined: Oct 2007
Reputation: 0
Post: #14
Rock on brother.

Rock on.
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 900
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #15
ok. sussed the Live Radio only playing the intro clip.
Seems the container .rpm file can contain multiple rtps lines, its acting as a form of playlist.

Quick fix.
Edit default.py

In function playStream()

change the regular expression from
(rtsp://.*?)\?

to be
(rtsp://rmlive.*?)\?

That will just pickup the live feed

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
(This post was last modified: 2007-10-19 16:09 by BigBellyBilly.)
find quote
Post Reply