Recording BBC Radio - an update
I wrote previously (24th December 2006) about recording BBC Radio programmes as MP3 files so that you can listen to them later on an iPod, or burn them to a CD. Recently the BBC has changed the way it stores its ‘Listen Again’ radio programmes for use with the iPlayer so the method I described no longer works. Radio programmes are available on the BBC’s servers as Real Audio files that previously required you to install the free Real Audio player on your computer. These files are still available but the naming convention has changed. For example, previously the weekly Saturday Play was always available with the same filename (http://www.bbc.co.uk/radio/aod/ shows/rpms/radio4/saturdayplay.rpm), so I had an automated job that would download this file every week so that I could listen to the programme later, even if ‘later’ was several weeks or months afterwards when the actual recording was no longer downloadable from the BBC. Sadly now every file has a different name or path. So for example today’s Saturday Play is available here: http://www.bbc.co.uk/iplayer/aod/playlists /7d/lm/h0/0b/RadioBridge_uk_1430_bbc_radio_fourfm.ram. Look at the collection of character pairs separated by forward slashes in this link. The 7d/lm/h0/0b is actually the reverse of the programme’s PID which, I’m guessing, is the Programme Identifier or similar. For today’s Saturday Play the PID is b00hmld7. This appears to be the unique component that defines this particular episode of the programme. Last week’s Saturday Play had a different PID, and so will next week’s. The thing is, how can we find out what that is?
I’ve come up with two ways, neither of which is as convenient as the name being static. The first is what I would call a do-it-yourself method. Browse the BBC listen again website to find the programme you want (e.g. Radio 4’s listen again page is at www.bbc.co.uk/radio4/progs/listenagain.shtml). Click the link to listen to the programme in the iPlayer but click the pause button as soon as it starts to play. Now right-click the black bar near the bottom of the iPlayer (just below the play/pause button) and choose View Source. This will display an editor window containing the iPlayer’s HTML source. Search the file (using Ctrl+F) for Real:. This will take you to the section of the source where, immediately after the colon, is the link to the Real Audio file you need. Copy everything from http:// to .ram. Paste this into your Real Player or other recording application and you should be able to download the file and save it in MP3 (or other convenient) format for future listening. This method works, but what a chore! I was hitherto recording around 30 Radio 4 programmes a week and with static names the whole process was completely automatic. Using Audio Hijack Pro on my Apple Mac the jobs were all scheduled in the Mac’s iCal calendar and would be recorded even if I was away from home.
The alternative method I’ve discovered is using an excellent website which I stumbled across at www.iplayerconverter.co.uk/. Initially I thought this was the answer to all my prayers but it isn’t quite. There is much useful content on this site but it isn’t comprehensive and I have encountered several errors in the PIDs they report. For example, as I type this they show the PID for this afternoon’s Saturday Play as b00hmlhk when actually it’s as shown above. Also the website shows that programme as not available for download when it clearly is because I’m downloading it right now. Nevertheless this website has content which offered welcome information when I was hunting for solutions to this problem. One of their most useful offerings for me (provided the links are correct!) is an RSS feed of programme links for your preferred BBC radio channel. For example the Radio 4 feed is at feed://www.iplayerconverter.co.uk/r/4/aod/rss.aspx. If you have an RSS reader or email client that supports RSS you can use this to receive a daily feed of links for downloading. I should add that the link sent via RSS for today’s Saturday Play was correct, unlike their website. The RSS feed provides updated links throughout the day for every programme (except those that cannot be downloaded), and it’s a simple matter to click on the required link (or copy it) to obtain access to your chosen programme.
Another development of interest is that the BBC makes available an XML file for each of its Radio channels containing key details of their programme schedule, including the all-important PID. Every three hours the Beeb releases an updated XML file containing details of all programmes that can be downloaded now, and that will be available in the coming 48 hours. A fascinating description of this XML data, and how to obtain it, is contained in this document: http://docs.google.com/View?docid=d9sxx7p_38cfsmxfcq. For example the Radio 4 xml file can be downloaded from www.bbc.co.uk/radio/aod/availability/radio4.xml. If I had more time on my hands I’d be very tempted to write an application that would use this data to automate all my downloading. Maybe next year…