mikeage.net Logo
mikeage.net/2007/09/

mikeage.net @ ו׳ כסלו תשע״ח

Archive for ‍‍ אלול תשס״ז / תשרי תשס״ח - September, 2007

Batch Downloading of Lyrics for MP3

‍‍כ׳ אלול תשס״ז - Monday, September 3rd, 2007

I recently wanted to try some synchronized lyric plugins for music playback. Unlike mp3/ogg files, synchronized lyrics are very hard to find. I figured my best bet would be to try and download text lyrics, and sync them myself. It's not a hard process, it just takes a few minutes.

Actually downloading the lyrics, though, can be slow. Many sites provide user contributed lyrics, but they're not set up nicely for easy downloading. Before I started to write my own perl parser, I decided to search CPAN, and came up with David Precious' outstanding Lyrics::Fetcher package. If you download his Bundle::Lyrics::Fetcher, you get the main fetcher, as well as modules LyricWiki, AZLyrics, and AstraWeb.

One I had this installed, the script to do this for all my music was quite simple. The only configuration needed is in the first variable; add a list of everywhere you have music. Note that this script currently only works for MP3; it could easily be expanded to process tags with other formats, however.

Source Code Download
(more…)

Quick Map
Content +
Personal +
Archives +
Site Stuff +
RBS Weather +
Search +
Recent Images

Valid XHTML 1.1!
Printer Friendly Page
 

Last Modified: September 04, 2006 @ 02:11 CST

Memory(TRUE): 4194304/4194304
Memory(FALSE): 2922936/2932920