From owner-freebsd-ports@FreeBSD.ORG Mon May 15 19:00:58 2006 Return-Path: X-Original-To: ports@FreeBSD.ORG Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 895C016B6F0 for ; Mon, 15 May 2006 19:00:57 +0000 (UTC) (envelope-from fernan@iib.unsam.edu.ar) Received: from smtp.unsam.edu.ar (smtp.unsam.edu.ar [170.210.48.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C5C343D6E for ; Mon, 15 May 2006 19:00:49 +0000 (GMT) (envelope-from fernan@iib.unsam.edu.ar) Received: from omega.iib.unsam.edu.ar (omega.iib.unsam.edu.ar [192.168.10.14]) by smtp.unsam.edu.ar (8.12.6/8.12.6) with ESMTP id k4FJ2doh087588; Mon, 15 May 2006 16:02:40 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: from omega.iib.unsam.edu.ar (localhost [127.0.0.1]) by omega.iib.unsam.edu.ar (8.13.6/8.13.6) with ESMTP id k4FJ0WSe070661; Mon, 15 May 2006 16:00:32 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: (from fernan@localhost) by omega.iib.unsam.edu.ar (8.13.6/8.13.3/Submit) id k4FJ0RSe070640; Mon, 15 May 2006 16:00:27 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) X-Authentication-Warning: omega.iib.unsam.edu.ar: fernan set sender to fernan@iib.unsam.edu.ar using -f Date: Mon, 15 May 2006 16:00:27 -0300 From: Fernan Aguero To: eischen@vigrid.com, FreeBSD Ports Message-ID: <20060515190027.GI38981@iib.unsam.edu.ar> Mail-Followup-To: eischen@vigrid.com, FreeBSD Ports , xmcd@amb.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.5.11 Cc: xmcd@amb.org Subject: cddb working in xmcd? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 19:00:59 -0000 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