Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cddb_get(3pm) [debian man page]

CDDB_get(3pm)						User Contributed Perl Documentation					     CDDB_get(3pm)

NAME
CDDB - Read the CDDB entry for an audio CD in your drive SYNOPSIS
use CDDB_get qw( get_cddb ); my %config; # following variables just need to be declared if different from defaults $config{CDDB_HOST}="freedb.freedb.org"; # set cddb host $config{CDDB_PORT}=8880; # set cddb port $config{CDDB_MODE}="cddb"; # set cddb mode: cddb or http $config{CD_DEVICE}="/dev/cdrom"; # set cd device # user interaction welcome? $config{input}=1; # 1: ask user if more than one possibility # 0: no user interaction # get it on my %cd=get_cddb(\%config); unless(defined $cd{title}) { die "no cddb entry found"; } # do somthing with the results print "artist: $cd{artist} "; print "title: $cd{title} "; print "category: $cd{cat} "; print "cddbid: $cd{id} "; print "trackno: $cd{tno} "; my $n=1; foreach my $i ( @{$cd{track}} ) { print "track $n: $i "; $n++; } DESCRIPTION
This module/script gets the CDDB info for an audio cd. You need LINUX, SUNOS or *BSD, a cdrom drive and an active internet connection in order to do that. INSTALLATION
Run "perl Makefile.pl" as usual. ("make", "make install" next) LICENSE &; DISCLAIMER This library is released under the same conditions as Perl, that is, either of the following: a) the GNU General Public License Version 2 as published by the Free Software Foundation, b) the Artistic License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details. You should have received a copy of the Artistic License with this Kit, in the file named "Artistic". If not, I'll be glad to provide one. You should also have received a copy of the GNU General Public License along with this program, in the file names "Copying"; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. If you use this library in a commercial enterprise, you are invited, but not required, to pay what you feel is a reasonable fee to the author, who can be contacted at armin@xos.net AUTHOR &; COPYRIGHT (c) 2003 Armin Obersteiner <armin(at)xos(dot)net> SEE ALSO
perl(1), Linux: /usr/include/linux/cdrom.h, Solaris, *BSD: /usr/include/sys/cdio.h. perl v5.14.2 2012-03-06 CDDB_get(3pm)

Check Out this Related Man Page

CDDB-TOOL(1)						      General Commands Manual						      CDDB-TOOL(1)

NAME
cddb-tool - Get CDDB information SYNOPSIS
cddb-tool parse file [-i|-d|-a|-t] [num|-c|-p] cddb-tool template disc-id tracks cddb-tool send [file] address cddb-tool query server user host disc-id tracks cddb-tool read server user host disc-id genre cddb-tool help DESCRIPTION
cddb-tool is a backend tool for abcde. It is passed information from cd-discid and uses it look up the CD title, artist, and track informa- tion on the cddb database (http://freedb.freedb.org) on the internet. COMMANDS
parse [file] option Get data out of a cddb file (use "-" for stdin). Options (use one and only one): id prints disc id album prints album title track num prints title of track num artist prints artist category prints category cddbgenre synonym for category all parse file and dumps to stdout in a form sourceable by the shell send [file] address Mails file file (or stdin of no file specified) to specified address, using correct format. Category should be one of blues, classical, country, data, folk, jazz, newage, reggae, rock, soundtrack, misc. template [disc-id] [tracks] Generates a template (empty) cddb file to stdout. The command line should be essentially the output of cd-discid. query [server] [user] [host] [disc-id] [tracks] Looks up disc on server (should be of form "http://host/cddb/cddb.cgi") remainder of command line is in the same form as that returned by the cd-discid program. Uses wget, so if you need to use a proxy then just configure wget to do so. user and host will be used for identify- ing ourselves to the CDDB server. Outputs response code and entries with matching CDDB entries, if successful, from the CDDB server. read [server] [user] [host] [disc-id] [genre] Dumps CDDB entry to stdout. File will contain an extra #CATEGORY= line, which leaves it a valid CDDB file but which will be recognized by parse and send commands. Uses wget, so if you need to use a proxy then just configure wget to do so. user and host will be used for identi- fying ourselves to the CDDB server. help Prints usage information. AUTHOR
Nathaniel Smith <njs@uclink4.berkeley.edu>, maintained as part of abcde by Robert Woodcock <rcw@debian.org>. Manual page compiled from help information by Robert Woodcock. CDDB-TOOL(1)
Man Page