iTunes 7: Fetching artwork for fun and profit
With the release of iTunes 7, Apple made a bold promise of letting you download all the artwork you lacked, from your (ahem) ripped CDs. Like short shorts, I like free album covers. I’m sure a lot of people do. Unfortunately, the functionality seems premature and blatantly crippled. I wrote some libraries to fetch artwork from iTMS a while ago, but that was shut down. Now that it’s open again, I decided to write a new library to fetch artwork.
After hours of tcpdump’ing and analyzing a few obscure headers sent, the game was afoot. I wrote a perl library that basically allows you fetch a URL containing a neat 600x600 JPEG. Someone please port it to PHP and Python. I don’t have the time. Without further ado: “i7AWF.pm”:http://www.avantlumiere.com/svn/i7AWF/trunk/i7AWF.pm And here’s how you (can) use it: use i7AWF; my $i7 = new i7AWF; $i7->artist(“Dire Straits”); $i7->album(“Sultans of Swing”); print $i7->payload; Or try the “online demo”:http://printf.dk/cgi-bin/i7AWF.cgi NB: Contrary to popular belief (and word of Jobs), no — you are not required to be logged in to your iTunes account to use this. UPDATE: My friend Nicolas Mendoza has been utterly kind, and ported it to “PHP”:http://www.avantlumiere.com/svn/i7AWF/trunk/i7AWF.php. Oh, and I made the “paper”:http://www.nettavisen.no/it/article741678.ece.
I ported it to Python: http://manuzhai.nl/src/i7awf.py.