O'Reilly logo

Amazon Hacks by Paul Bausch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Add Cover Art to Your Digital Music Collection

Add cover art back into your music experience with MP3 Piranha.

If you’ve moved from listening to CDs to listening to MP3 files on your computer, you’re probably missing some of the fun of CDs. MP3 files don’t provide the original album cover art or release date information. Using Amazon’s Web Services, a tool from CapeScience (http://www.capescience.com) can add some extra information while you’re browsing your MP3 files.

MP3 Piranha (http://www.capescience.com/piranha/) is a Java application that queries Amazon for information about your digital music files. MP3s store metadata in ID3 tags (at the end of the MP3 file) that contain a file’s title, artist, album name, release date, genre, track number, and so on. This is the way that many MP3 players automatically know the track name, artist name, and other information about the song.

The first step in developing Piranha was to generate a Java client from the Amazon WSDL file using Cape Clear Studio. WSDL files are machine-readable XML files that describe all of the SOAP methods available at a particular service. This provided the skeleton code, which was then modified to incorporate a graphical user interface. The client uses Amazon’s SOAP interface to invoke Web Service methods.

Tip

In addition to AWS, MP3 Piranha relies on an open source Java library called Java MP3Info. MP3Info is a set of Java classes that can read from and write ID3 tags. More information on this library can be found ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required