« Gorram Video Drivers | Main | What I learned from Dr. Horrible »
July 19, 2008
Coverart and Python and Perl, Oh My!
I started playing around with the MusicBrainz taging application (Picard) - and noticed a plugin that would download album art, something iTunes failed at pretty miserably (finding art for only around half of my albums). I was all excited, 'till I tried it and discovered that Picard didn't know how to write tags to FLAC headers, only into ID3 tags.
Picard is open source, and written in Python, so after a bit of grep'ing around the code, I had a reasonable idea how to fix that oversite. A half hour later, I was watching Picard add cover art to my FLAC files. w00t!. I submitted this patch to the Picard maintainers, so hopefully it'll find it's way into the next release.
Then I turned my attention to the script I use to transcode those FLAC files into mp3, a handy bit of perl by a fellow named Robin Bowes. Sure enough, it didn't understand how to transfer the FLAC album art information into ID3 Tags.
Another half hour or so (most of that 'cause my Perl skills are insanely rusty, which I'm not convinced is a bad thing) and I had taught it how to do the necessary gyrations. Sent that off to the maintainer as well.
If I get inspired to continue hacking on Picard, I'll give it the ability to treat "The Artist" as "Artist, The" for folks like me who can never find anything scrolling through the sea of "The's."
Another night, perhaps...
Posted by dberger at July 19, 2008 9:20 PM