Close

Christmas is Saved

A project log for Python SomaFM Player

Listen to the unofficial soundtrack of Hackaday in your terminal.

Tom NardiTom Nardi 12/10/2019 at 18:090 Comments

The holidays are upon us, and that means even SomaFM has been playing the following songs pretty regularly (albeit in forms you probably haven't heard before):

Baby It's Cold Outside

Santa Claus Is Comin’ To Town

It's the Most Wonderful Time of the Year

It's Beginning to Look a Lot Like Christmas

Thanks to these holiday classics, I finally noticed a bug that's been there from the very beginning. I was using apostrophes as delimiters when parsing the stream info coming out of MPlayer, which obviously (in hindsight, anyway) means any song title with said punctuation was getting truncated.

I've changed how the MPlayer output is parsed which fixed the issue, and the new version is already up on GitHub. Just in time for any holiday parties you might have planned.

Discussions