Menu

#6 cddb_query fails

open
nobody
None
5
2009-11-20
2009-11-20
Dihenydd
No

There seems to be an odd issue with the cddb_query program which ships with libcddb (and also shows up in Asunder).
The command `cddb_query query time tracks offsets` is only returning one entry from freedb.org for certain discs (feels like all of mine mind). To cut to the chase I think it is due to invalid characters in the disc and artist names hence null by null.
using cd-discid I can get the following disc info's and for the sake of debugging I shall add the cddb_query command I'm running (tried various -P opts).

cd-discid
c3106d0d 13 150 22001 32751 56093 69384 102095 175470 211318 241482 263689 273711 291883 301463 4207
cddb_query query 4207 13 150 22001 32751 56093 69384 102095 175470 211318 241482 263689 273711 291883 301463

should provide Classical (Classic FM Anthems) plus others, just returns cat: misc and (artist) '(null)' by null as two separate lines with only 'Number of matches: 1'

cd-discid
be0f1a0f 15 150 16068 35338 53550 64685 84310 101898 122775 142795 162003 174973 193770 206048 226655 247404 3868
cddb_query query 3868 15 150 16068 35338 53550 64685 84310 101898 122775 142795 162003 174973 193770 206048 226655 247404
Should provide No Doubt 'Return of Saturn' amongst others, it just provides 1 folk entry, followed with the line null by null.
Weirdly, change 3868 to 3846 you get the correct No Doubt album (but at 3824 secs, not 3846) Okay, there's something funny about the number 22 here. Unfortunately 22 doesn't work elsewhere! Although I'm guessing this is completely meaningless - it tickled me.

The Massive Attack 'Mezzanine' example in the help output works, but again disc times don't match.

Searching directly for the disc (cddb_query read GENRE DISCID) works when I put the correct genre in, it's just fetching the genre list in the first place.

cd_discid
500c2c07 7 150 33105 72008 91123 125315 167495 194743 3118
should be one of the Holst's The Planets, and did return both hits twice in the not so distant past, random hits though - both through Asunder, and no software updates between working and not working, merely seconds of time between tests. I can't explain.

I suspect it may have something to do with invalid characters (or sets) in the file names as all of the examples above have at least one additional entry with what I shall dubiously call 'non-English' characters.

Gentoo amd64 (most recent to this date and only just installed from new)
libcddb-1.3.2
>locales -a
C
POSIX
en_GB
en_GB.iso88591
en_GB.utf8

Discussion


Log in to post a comment.

MongoDB Logo MongoDB