Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CDDB Access

162 views
Skip to first unread message

Maverick

unread,
Jan 18, 2003, 3:18:58 PM1/18/03
to
Hi, i'm building my own audio cd database and i would like to be able to
query CDDB so my program could update the cd albuns...
Example: lets imagine that there is in my database the album System Of A
Down - Toxicity but i don't have the information relative to the album
tracks, so i would like to push a button and my program would connect to
CDDB and update the tracks info...
something like this:
CDDB1.Connect("server");
CDDB1.ExecuteSQL("...)
for i:=1 to CDDB1.recordcount do
database.album.tracks[i].name:=CDDB1.recordset.tracks[i].name;
CDDB1.Disconnect();

Is this possible??? Some has the code to this or know how to make it????


Roger Helliwell

unread,
Jan 18, 2003, 10:22:12 PM1/18/03
to

This was quoted from the cddb.com site:

"You may not aggregate or collect Content from this Site. Content from
Gracenote may not be used to construct any kind of on-line or computer
database and it may not be published in any form. You may not collect,
transfer or transmit Content derived from the CDDB database or any
other Content from this Site."

CDDB was bought a while ago and is now a commercial only site.
However, check out www.freedb.org Their database is just as complete
if not larger (if not larger now that most people are switching).

There are already a few freedb components. Search on Google. "access
freedb with delphi"

If you're going the DYI approach, start your search here:

http://www.freedb.org/modules.php?name=Sections&sop=listarticles&secid=2

They describe in great detail the nuts-and-bolts of accessing the
freedb database programmatically, but you won't find any Delphi
related material. With a few Indy components and the specs from above,
it sounds like an interesting project. Good luck!

Roger

Gecko

unread,
Jan 20, 2003, 10:33:54 AM1/20/03
to
On Sat, 18 Jan 2003 20:18:58 -0000, "Maverick" <mv...@netc.pt> wrote
in <3e29...@news.vizzavi.pt>:

Yes, it is possible. But you have to sign up with Gracenote (the
owners of the CDDB) as a developer, which is free if you don't make
money from your software, and download their SDK, which is basically
an ActiveX component. The SDK includes examples, but not in Delphi,
though it isn't too hard to follow the VB and or C++ ones.

There is a little bit more to it than just connect, read and
disconnect. But I've played around with it a bit and it is fairly
straight forward...

Or as was also suggested, you could use the freedb.org database.
There are a few components around for it and they seem simple to
use.

--
Gecko

Maverick

unread,
Jan 20, 2003, 7:39:12 PM1/20/03
to

"Gecko" <ausgec...@TOSPAMhotmail.com> wrote in message
news:pe1o2vsg7js4qbpfk...@4ax.com...

Yes, i'm registered as a developer in gracenote, but the SDK, as all code
i've found, only has possibility of querying the database by CD ID, and what
i want is to retrieve data relative to CD by artist name and album name...


Gecko

unread,
Jan 22, 2003, 10:31:57 AM1/22/03
to
On Tue, 21 Jan 2003 00:39:12 -0000, "Maverick" <mv...@netc.pt> wrote
in <3e2c96a9$1...@news.vizzavi.pt>:

>Yes, i'm registered as a developer in gracenote, but the SDK, as all code
>i've found, only has possibility of querying the database by CD ID, and what
>i want is to retrieve data relative to CD by artist name and album name...
>

Ok I get you now...and I think you'll find that you're out of luck.

But IIRC you can search the CDDB website using title/artist. Maybe
you could look into using http to send a search/query and parsing
the resultant html? Though I think that the web search only gave you
very limited info - just a track listing.

--
Gecko

0 new messages