These are the results with libcddb-1.3.2 loaded and an audio CD in the drive.
there doesn't seem to be an -i switch in this version of cddb.
LC_ALL=C cddb_query -i /dev/cdrom read
Usage: cddb_query [OPTION] COMMAND [ARG]
Available options:
-c <mode> local cache mode [on|off|only] (default = on)
-D <cache dir> directory for local cache (default = ~/.cddbslave)
-e <charset> character set encoding (default = UTF-8, see iconv -l)
-h display this help and exit
-l <level> log level, one of debug, info, warning, error or
critical (default = warning)
-p <port> port of CDDB server (default = 888)
-P <protocol> server protocol [cddbp|http|proxy] (default = cddbp)
-q quiet, do not print any error or log messages
-s <server> name of CDDB server (default = freedb.org)
-t use track times (in seconds) instead of frame offsets
Available commands:
calc <len> <n> <fo_1> ... <fo_n>
calculate disc ID
query <len> <n> <fo_1> ... <fo_n>
query CDDB server and list all matching entries
read <cat> <id> retrieve disc details from CDDB server
search <str> perform a text search against the CDDB database
album <artist> <title>
perform a text search against the CDDB database (only
works on freedb2.org servers)
sites retrieve a list of mirror sites
Command arguments
<cat> disc category (see below)
<fo_i> without -t: frame offset of track i
with -t: length of track i in seconds
<id> disc ID in hexadecimal
<len> disc length in seconds
<n> track count
<str> search string
Available CDDB categories are:
data, folk, jazz, misc, rock, country, blues, newage, reggae,
classical, and soundtrack
Examples:
To calculate the disc ID of the CD 'Mezzanine' from Massive Attack:
cddb_query calc 3822 11 150 28690 51102 75910 102682 \
121522 149040 175772 204387 231145 268065
To query for matches of the CD 'Mezzanine' from Massive Attack:
cddb_query query 3822 11 150 28690 51102 75910 102682 \
121522 149040 175772 204387 231145 268065
To read the details of the CD 'Mezzanine' from Massive Attack:
cddb_query read misc 0x920ef00b
To search for all CDs with the string 'Mezzanine':
cddb_query search Mezzanine
or
cddb_query album '' Mezzanine
zigbert wrote:smokey01
Looks like we have different versions of libcddb. I tested
, but no version information
The command used in pMusic is
Code: Select all
LC_ALL=C cddb_query -i /dev/cdrom read
(/dev/cdrom is not hardcoded, but set in the preferences)
What output do you get when executing this command?
I get:
Code: Select all
# LC_ALL=C cddb_query -i /dev/cdrom read
CD-ROM device: /dev/cdrom
CD contains 10 track(s)
Artist: Helloween
Title: Keeper Of The Seven Keys Part II
Genre: Heavy Metal
Year: 1988
Length: 54:58 (3298 seconds)
10 tracks
[01] 'Invitation' by Helloween (1:08)
[02] 'Eagle Fly Free' by Helloween (5:10)
[03] 'You Always Walk Alone' by Helloween (5:10)
[04] 'Rise And Fall' by Helloween (4:23)
[05] 'Dr Stein' by Helloween (5:05)
[06] 'We Got The Right' by Helloween (5:08)
[07] 'March Of Time' by Helloween (5:15)
[08] 'I Want Out' by Helloween (4:41)
[09] 'Keeper Of The Seven Keys' by Helloween (13:37)
[10] 'Save Us' by Helloween (5:14)
It might be the -i switch that troubles?
It can be removed, but then user can NOT choose device if there are installed more than one.