CBC Radio 2 Concerts on Demand

CBC Radio 2 has an excellent Concerts on Demand feature on its website. Unfortunately it’s rendered as a set of web pages that makes easy browsing of the entire canon cumbersome, and because the links to tracks are trapped inside ASX files it’s harder for non-Windows users to get at the music itself (every time I tried to listen to a concert in Firefox on my Mac about 25 empty tabs would inexplicably spring open).

To help expose this resource to a wider audience, I’ve hacked together one big page that lists every concert and every track, in reverse chronological order.

This isn’t intended to be a pretty page, but rather a dead simple one. It’s intended to make using players like MPlayer and VideoLAN to listen to the concerts easier. It doesn’t actually do anything other than index the files on the CBC media server differently.

For the technically-minded among you, the key to the whole process is http://www.cbc.ca/radio2/cod/ajax.php, a handy URL that returns JSON about the concerts. It’s not optimized for use as an external API, so there’s some post-processing of the chunks of HTML table code that it returns, but the data is structured enough so that this isn’t arduous.

Comments

Chris Corrigan's picture
Very nice work Peter. Does this call the most recent updated page of CoD, or will you have to manually update as concerts are added?
Peter Rukavina's picture

I have a script, that I’ll publish shortly, that does all the “grabbing and processing” and that can be set to run every day automatically (it’s not set up this way yet).

Peter Rukavina's picture

I’ve started to update the Concerts on Demand page every day so that it should always reflect the current list of concerts.  I’ve also added a Concerts on Demand RSS Feed (it contains the most recent 50 concerts).

kerry231's picture
Great tips! I was trying to use the site a few months back and had no idea why all those dang tabs kept opening. Needless to say, I gave up! I never had that problem with sites for tickets to U2.

Post new comment

You can comment anonymously if you must, but I would prefer it if you used your real name.
The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Optional. If you enter the address of a website here, your name will be publicly linked to the site.
  • Adds typographic refinements.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.