Update, July 2022:
.m3u8 stream URLs changed again, updated gist.
Recently CBC revamped its music streams again and the old MP3 stream URLs don’t work. Why would they do this? Well, they want people to listen using the website or official app, or via platforms they have agreements with, like Google Home and Alexa.
Personally, I think this is bullshit. I like listening to music while on the computer, but I’m not opening a whole-ass modern web browser, on top of whatever else I have open, for a simple audio stream. And if I’m using headphones with my phone or an actual physical radio, how am I supposed to hear sounds on my computer? So, after some helpful tips from more techy folks on Mastodon and Github, I threw together a few playlists of the live radio streams.
- This playlist (modern) uses the
.m3u8URLs from the CBC Listen website. The CBC now uses the HLS (HTTP Live Streaming) protocol rather than MP3 streaming. The stream is broken up into into multiple tiny files, which are then fed into the
.m3u8playlist file that delivers them to your computer in the right order. This works with modern media players like VLC, Transistor, MPD, etc.
- This playlist (legacy) will work for older programs like Winamp that don’t support HLS. It uses good old-fashioned MP3 streams, found via this random old app’s site and hosted on a different CDN (content delivery network) called Limelight. I don’t know how long these URLs will be around, but they work.
How to use it:
- Download the raw file by clicking the “Raw” link in the upper right corner (shown above) and saving it to your computer.
- Optionally, first open the file in a text editor and delete the stations you don’t want.
- Open the file with your preferred web radio application of choice.
- Pick your preferred radio station. “CBC Music” is what used to be Radio 2.
Personally, I like VLC’s
ncurses interface, so I added this to my
alias cbcradio='vlc -I ncurses ~/Music/cbc.m3u'. Typing
cbcradio into my terminal app results in this: