´óÏó´«Ã½

« Previous | Main | Next »

Things to do with /programmes #431: iTunes!

Post categories: ,Ìý,Ìý,Ìý

Matthew Wood | 21:55 UK time, Tuesday, 9 September 2008

If you've been reading RadioLabs for a while you'll know that we go on about how we've tried to design bbc.co.uk/programmes for machines as well as for people.

What we mean is that we've tried to make it easy for machines to get at the programme information behind the site, so that it can be re-presented in useful and novel ways.

Here's an example from a hack I've been working on:

Screenshot of ´óÏó´«Ã½ Radio in iTunes

You're looking at a screenshot of iTunes running on my laptop. I've poked information from /programmes in there so that genres show up as playlists, and episodes show up as songs. It's as if ´óÏó´«Ã½ Radio were an iTunes shared library located somewhere on my local network. You can also see the hack in .

Here's what I was thinking: all my music is in iTunes. iTunes, via an Airport Express, plays out through my Big Speakers. Wouldn't it be nice to be able to use it to find out what this week's Thinking Allowed is about, or to enjoy some rough dubplate pressure from 1Xtra?

So how does it work?

Simply, the app grabs programme information from /programmes and re-presents it to iTunes in its native tongue: .

We've tried to design /programmes to make this kind of thing easy.

For example: the app needs the following information:


  • which genres have radio programmes in them?

  • for a specific genre, which programmes are currently available on-demand?

/programmes answers the first question at /radio/programmes/genres/, and the second at /radio/programmes/genres/drama/relationshipsandromance/player and its cousins.

Only interested in Radio 4? Hack that url to /radio4/programmes/genres/drama/relationshipsandromance/player. Or TV? Try /tv/programmes/genres/drama/relationshipsandromance/player.

Just add XPath!

If you'd like to try this for yourself I've made the code available for your . It's My First Erlang, be gentle :-)

And if I've inspired you to try and build your own hack on top of /programmes, here's the way in - let us know how you get on!

Comments

Ìý

´óÏó´«Ã½ iD

´óÏó´«Ã½ navigation

Copyright © 2015 ´óÏó´«Ã½. The ´óÏó´«Ã½ is not responsible for the content of external sites. Read more.

This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.