Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 May 2006 16:00:27 -0300
From:      Fernan Aguero <fernan@iib.unsam.edu.ar>
To:        eischen@vigrid.com, FreeBSD Ports <ports@FreeBSD.ORG>
Cc:        xmcd@amb.org
Subject:   cddb working in xmcd?
Message-ID:  <20060515190027.GI38981@iib.unsam.edu.ar>

next in thread | raw e-mail | index | archive | help
Hi!

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=20

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

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


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

Now, what was the problem?=20

i) cddb database is incomplete and lacks and entries for my discs?
ii) xmcd calculates bad disc Ids?
iii) cddb.com 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 (cddb.com)
while all but one have been found by the patched xmcd (using
freedb.org):
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 relea=
se)

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

Fernan

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




Patch to use freedb.org:

--- 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
=20
 /* CDDB1 server host and CGI path */
-#define CDDB_SERVER_HOST	"cddb.cddb.com"
+#define CDDB_SERVER_HOST	"freedb.freedb.org"
 #define CDDB_CGI_PATH		"/~cddb/cddb.cgi"
-#define CDDB_SUBMIT_HOST	"submit.cddb.com"
+#define CDDB_SUBMIT_HOST	"freedb.freedb.org"
 #define CDDB_SUBMIT_CGI_PATH	"/~cddb/submit.cgi"
=20
 /* Web browser invocation script name */




Output of 'xmcd debug 4' (using default cddb.com)
Script started on Mon May 15 13:33:26 2006
[fernan@omega] xmcd debug 4=0D=0D
Enabling DEBUG: level=3D0x4.=0D
*** CD info query: Trying CD-TEXT...=0D
*** CD info query: Trying CDDB service...=0D
=0D
Opening CDDB service...=0D
CddbInitialize: 0xcddb1=0D
CddbControl_SetClientInfo: 0x0=0D
CddbControl_Initialize: fcddb_genre_init: reading /home/fernan/.cddb2/88852=
48/genre.map=0D
0x0=0D
CddbControl_GetOptions: 0x0=0D
CddbOptions_PutProxyServer: 0x0 -=0D
CddbOptions_PutProxyUserName: 0x0 -=0D
CddbOptions_PutProxyPassword: 0x0=0D
CddbOptions_PutLocalCacheFlags: 0x0 flags=3D0x0=0D
CddbOptions_PutLocalCacheTimeout: 0x0 7=0D
CddbOptions_PutServerTimeout: 0x0 60000=0D
CddbOptions_PutTestSubmitMode: 0x0 False=0D
CddbControl_SetOptions: 0x0=0D
CddbControl_GetServiceStatus: 0x0 GetServiceStatus not implemented.=0D
CddbControl_ServerNoop: 0x0=0D
CddbControl_IsRegistered: 0x0 Yes=0D
CddbControl_GetUserInfo: 0x0=0D
CddbUserInfo_GetUserHandle: 0x0 fernan=0D
User "fernan" is registered.=0D
CddbUserInfo_GetPasswordHint: 0x0 =0D
CddbUserInfo_GetEmailAddress: 0x0 =0D
CddbUserInfo_GetRegionId: 0x0 =0D
CddbUserInfo_GetPostalCode: 0x0 =0D
CddbUserInfo_GetAge: 0x0 =0D
CddbUserInfo_GetSex: 0x0 =0D
CddbUserInfo_GetAllowEmail: 0x0 No=0D
CddbUserInfo_GetAllowStats: 0x0 No=0D
TOC string: 150 21704 43982 68594 90718 114062 134623 156256 177654 202561 =
222439 240361 263001 293201 333000=0D
CddbControl_LookupMediaByToc: =0D
fcddb_query_cddb: server query=0D
fcddb_connect: cddb.cddb.com:80=0D
fcddb_sendcmd: Sending command:=0D
------=0D
GET /~cddb/cddb.cgi?cmd=3Dcddb+query+ca11560e+14+150+21704+43982+68594+9071=
8+114062+134623+156256+177654+202561+222439+240361+263001+293201+4440&hello=
=3Dfernan+omega.iib.unsam.edu.ar+xmcd+3.3&proto=3D4 HTTP/1.0=0D=0D
Host: cddb.cddb.com=0D=0D
User-Agent: Mozilla/5.0 (compatible; xmcd 3.3)=0D=0D
Accept: text/plain=0D=0D
=0D=0D
=0D
------=0D
fcddb_sendcmd: Server response:=0D
------=0D
HTTP/1.1 200 OK=0D=0D
Date: Mon, 15 May 2006 16:33:51 GMT=0D=0D
Content-Type: text/plain=0D=0D
Server: GracenoteHTTPD/1.1=0D=0D
Connection: close=0D=0D
Content-length: 36=0D=0D
=0D=0D
202 No match for disc ID ca11560e.=0D=0D
=0D
------=0D
0x0=0D
No CDDB match=0D
CddbControl_Shutdown: 0x0=0D
CddbTerminate: 0x0=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/rock/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/jazz/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/blues/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/newage/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/classical/ca11560e=
=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/reggae/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/folk/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/country/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/soundtrack/ca11560=
e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/misc/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/unclass/ca11560e=0D
*** CD info query: Trying /usr/X11R6/lib/X11/xmcd/cdinfo/data/ca11560e=0D
[fernan@omega] ^D=08=08exit=0D

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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060515190027.GI38981>