cddb working in xmcd?

Fernan Aguero fernan at
Mon May 15 19:00:59 UTC 2006


I've just installed xmcd and CDDB lookups are not working
for me ... though they work in goobox and/or gnome-cd.

I'm using xmcd.3.3.2_2 

Below is the output of 'xmcd debug 4'
(debug cd info). 

The disc in the CD drive is Coldplay, X&Y 

After looking for some place to edit the cddb servers and to
change them and test others, I noticed that xmcd prefers (gracenote) and hardcodes all access to the URL ... so I patched xmcd and now xmcd correctly
identified my Coldplay disc.

Now, what was the problem? 

i) cddb database is incomplete and lacks and entries for my discs?
ii) xmcd calculates bad disc Ids?
iii) has a temporary failure

I've not stress tested xmcd with lots of discs (only a few
that I have at hand in the lab). But none of the discs I've
tried have been found using the default xmcd (
while all but one have been found by the patched xmcd (using
Coldplay - X&Y
Cirque du Soleil - La Nouba
Pat Metheny - Still Life (talking)
Marisa Monte - Universo ao meu redor (not found, but this is a recent release)

Maybe we can add an optional WITH_FREEDB knob to the port? 


PS: Caveat emptor ... I haven't tested the submit functionality

Patch to use

--- cddb_d/fcddb.h.orig	Mon May 15 15:15:19 2006
+++ cddb_d/fcddb.h	Mon May 15 15:22:34 2006
@@ -45,9 +45,9 @@
 #define HTTP_PORT		80
 /* CDDB1 server host and CGI path */
-#define CDDB_SERVER_HOST	""
+#define CDDB_SERVER_HOST	""
 #define CDDB_CGI_PATH		"/~cddb/cddb.cgi"
-#define CDDB_SUBMIT_HOST	""
+#define CDDB_SUBMIT_HOST	""
 #define CDDB_SUBMIT_CGI_PATH	"/~cddb/submit.cgi"
 /* Web browser invocation script name */

Output of 'xmcd debug 4' (using default
Script started on Mon May 15 13:33:26 2006
[fernan at omega] xmcd debug 4

Enabling DEBUG: level=0x4.
*** CD info query: Trying CD-TEXT...
*** CD info query: Trying CDDB service...

Opening CDDB service...
CddbInitialize: 0xcddb1
CddbControl_SetClientInfo: 0x0
CddbControl_Initialize: fcddb_genre_init: reading /home/fernan/.cddb2/8885248/
CddbControl_GetOptions: 0x0
CddbOptions_PutProxyServer: 0x0 -
CddbOptions_PutProxyUserName: 0x0 -
CddbOptions_PutProxyPassword: 0x0
CddbOptions_PutLocalCacheFlags: 0x0 flags=0x0
CddbOptions_PutLocalCacheTimeout: 0x0 7
CddbOptions_PutServerTimeout: 0x0 60000
CddbOptions_PutTestSubmitMode: 0x0 False
CddbControl_SetOptions: 0x0
CddbControl_GetServiceStatus: 0x0 GetServiceStatus not implemented.
CddbControl_ServerNoop: 0x0
CddbControl_IsRegistered: 0x0 Yes
CddbControl_GetUserInfo: 0x0
CddbUserInfo_GetUserHandle: 0x0 fernan
User "fernan" is registered.
CddbUserInfo_GetPasswordHint: 0x0 
CddbUserInfo_GetEmailAddress: 0x0 
CddbUserInfo_GetRegionId: 0x0 
CddbUserInfo_GetPostalCode: 0x0 
CddbUserInfo_GetAge: 0x0 
CddbUserInfo_GetSex: 0x0 
CddbUserInfo_GetAllowEmail: 0x0 No
CddbUserInfo_GetAllowStats: 0x0 No
TOC string: 150 21704 43982 68594 90718 114062 134623 156256 177654 202561 222439 240361 263001 293201 333000
fcddb_query_cddb: server query
fcddb_sendcmd: Sending command:
GET /~cddb/cddb.cgi?cmd=cddb+query+ca11560e+14+150+21704+43982+68594+90718+114062+134623+156256+177654+202561+222439+240361+263001+293201+4440& HTTP/1.0


User-Agent: Mozilla/5.0 (compatible; xmcd 3.3)

Accept: text/plain

fcddb_sendcmd: Server response:
HTTP/1.1 200 OK

Date: Mon, 15 May 2006 16:33:51 GMT

Content-Type: text/plain

Server: GracenoteHTTPD/1.1

Connection: close

Content-length: 36

202 No match for disc ID ca11560e.

No CDDB match
CddbControl_Shutdown: 0x0
CddbTerminate: 0x0
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/rock/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/jazz/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/blues/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/newage/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/classical/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/reggae/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/folk/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/country/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/soundtrack/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/misc/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/unclass/ca11560e
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/data/ca11560e
[fernan at omega] ^Dexit

Script done on Mon May 15 13:33:58 2006

More information about the freebsd-ports mailing list