Browsed by
Author: Kevin R Keegan

Perl ID3::Tag and Errors with Cover Art

Perl ID3::Tag and Errors with Cover Art

First off let me apologize for the stupid graphic on this post. I was getting a little lazy.

Now my question is for anyone who has used the MP3::Tag module on ID3v2 tags. At the moment when I use the module to edit a ID3v2 tag with an embedded cover art image I end up with a corrupt tag. I have not further diagnosed to see what version of ID3v2 it actually is. ID3v2 does have the ability to read these coverart frames so I am confused why this causes an error.

I have searched and found nothing, so if anyone knows the answer why this happens I would appreciate it.

Perl Tk TableMatrix Widget Help

Perl Tk TableMatrix Widget Help

I was told that perl/tk is a nice perl gui but is very badly documented. Well I can confirm I was told correctly.

Most recently I had some trouble with Tk:TableMatrix which is very poorly documented. The biggest annoyance I had was that TableMatrix is not compatible with ActivePerl 811 the most recent version. I found on a non english site that TableMatrix is compatible with 809. And I found that answer after a few hours of trying to figure out why my script would not run.

I also found out that when the documentation says to pass 4 values to -bd to describe {left right top bottom} border they really mean a refence to an array with four variables.

So I hope the posting of the following code will help others with TableMatrix.

Read More Read More

Perl Text Comparison/Similarity Final

Perl Text Comparison/Similarity Final

I have received a couple of suggestions via email in regards to how best compare two text strings. In my most recent post I discussed a the String::Compare module. Since then I have found some additional modules that do similar things.

I did my own personal test and review of each of the following modules and a few additional concepts. Some of the included modules are: String::Similarity, Text::Levenshtein , String::Approx, Text::Similarity, Algorithm::HowSimilar, Compressed file concept.?

Read More Read More

Allmusic ID3 Tag Fixer

Allmusic ID3 Tag Fixer

Introduction:

One of the major problems with using Allmusic.com as a metadata source is the difficulty in searching for the correct ablbum. Ideally we want to be searching for both Artist and Album together. However Allmusic.com only allows for searching of either album or artist not both. So the best way I have determined to match the album "Greatest Hits" is to first search for the artist and then search the discography for that album.

Part 2: Downloading Artist ID from Allmusic

Allmusic.com uses individual sql IDs to identify each artist and album. So what we need is a script to search and parse out the correct sql ID and add it to our mySQL database. I decided to use perl over php because this script will be run from a command prompt and not a browser because of the lenght of time necessary to complete it’s task.

Read More Read More