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

CD-INFO(1)							   User Commands							CD-INFO(1)

NAME
cd-info - manual page for cd-info version 0.83 i686-pc-linux-gnu SYNOPSIS
cd-info OPTION... Shows Information about a CD or CD-image. DESCRIPTION
-a, --access-mode=STRING Set CD access method -d, --debug=INT Set debugging to LEVEL -T, --no-tracks Don't show track information -A, --no-analyze Don't filesystem analysis --no-cddb Don't look up audio CDDB information or print it -P, --cddb-port=INT CDDB port number to use (default 8880) -H, --cddb-http Lookup CDDB via HTTP proxy (default no proxy) --cddb-server=STRING CDDB server to contact for information (default: freedb.freedb.org) --cddb-cache=STRING Location of CDDB cache directory (default ~/.cddbclient) --cddb-email=STRING Email address to give CDDB server (default me@home) --no-cddb-cache Disable caching of CDDB entries locally (default caches) --cddb-timeout=INT CDDB timeout value in seconds (default 10 seconds) --no-device-info Don't show device info, just CD info --no-disc-mode Don't show disc-mode info --dvd Attempt to give DVD information if a DVD is found. -v, --no-vcd Don't look up Video CD information - for this build, this is always set -I, --no-ioctl Don't show ioctl() information -b, --bin-file[=FILE] set "bin" CD-ROM disk image file as source -c, --cue-file[=FILE] set "cue" CD-ROM disk image file as source -N, --nrg-file[=FILE] set Nero CD-ROM disk image file as source -t, --toc-file[=FILE] set cdrdao CD-ROM disk image file as source -i, --input[=FILE] set source and determine if "bin" image or device --iso9660 print directory contents of any ISO-9660 filesystems -C, --cdrom-device[=DEVICE] set CD-ROM device as source -l, --list-drives Give a list of CD-drives --no-header Don't display header and copyright (for regression testing) --no-joliet Don't use Joliet extensions --no-rock-ridge Don't use Rock-Ridge-extension information --no-xa Don't use XA-extension information -q, --quiet Don't produce warning output -V, --version display version and copyright information and exit Help options: -?, --help Show this help message --usage Display brief usage message AUTHOR
Rocky Bernstein rocky@gnu.org, based on the cdinfo program by Gerd Knorr <kraxel@bytesex.org> and Heiko Eissfeldt <heiko@hexco.de> COPYRIGHT
Copyright (C) 2003, 2004, 2005, 2007, 2008, 2011 R. Bernstein This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. Have driver: GNU/Linux ioctl and MMC driver Have driver: cdrdao (TOC) disk image driver Have driver: bin/cuesheet disk image driver Have driver: Nero NRG disk image driver Default CD-ROM device: /dev/scd0 SEE ALSO
cd-drive(1) for CD-ROM characteristics; iso-info(1) for information about an ISO-9660 image. cd-info version 0.83 i686-pc-linux-gnu October 2011 CD-INFO(1)
Man Page