leocharre has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to access freedb.org info, (this is a gnu option for cddb(aka gracenote).

I want to be able to say look up all albums by artist 'Nine Inch Nails'. I'm looking for a API to create a cli or whatnot.

I tried WebService::FreeDB, and this module is in ruins- sadly. I see a buncha other modules on cpan, but it seems they expect you to be looking up against specific cd info, such as num of tracks, etc.

Can anybody suggest a proper module to connect to freedb.org?

Is there a lookup interface already available and being maintained for freedb.org ?

update

Found out some interesting stuff.. lltag

  • Comment on any suggestions for freedb search queries?

Replies are listed 'Best First'.
Re: any suggestions for freedb search queries?
by Old_Gray_Bear (Bishop) on Sep 27, 2009 at 19:28 UTC
    Well, there is Net::FreeDB, but it is a trifle elderly (last modified in 2006); but it one of the 'Credits To' people is Jeremy Zwadney, who has been heard from in very recent memory.

    There is also a cddb-freeds-perl Git archive hosted by Rocco Caputo (Project: cddb-freedb-perl; Owner: ~rcaputo; Created: 06 Sep 06:04) at cddb-freedb-perl with a slightly more recent time-stamp.

    And, now that you have brought the subject up, I am going to have to explore the CD meta-data space for my own Music-on-Disk library. Thank you Leo, I wasn't quite sure what was going to do with the rest of the afternoon ....

    ----
    I Go Back to Sleep, Now.

    OGB

      Yeah.. I have all these music files as mp3 format.. with varying id3 tags, some are similar such as 'Nine Inch Nails' and 'Nine inch Nails', so, I am working on consolidating them..

      So far I have some scripts that use String::Similarity::Group to find close matches.. It's working great.. I print sh commands to stdout for revission.. Thing is.. I don't know if the artist names and album names etc are authoritative or not.. So I'm trying to get a list of what *would* be authoritative.

      It seems freedb should have rpc calls, for example, such as WordPress(WordPress::XMLRPC )

      Here's some scripts if you care to look.. I'm sure you realize these are hacks..

      So.. using these.. I would..

      perl id3normalizer.pl -r; # update
      perl id3normalizer.pl -S > report.yml ; # save some data about what we see
      perl idenormalizer_parse_report.pl -m 1 -s ./report.yml > suggested_changes.sh