CDDB_get



CDDB_get

NAME
SYNOPSIS
DESCRIPTION
INSTALLATION
LICENSE & DISCLAIMER
AUTHOR & COPYRIGHT
SEE ALSO

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}\n";
 print "title: $cd{title}\n";
 print "category: $cd{cat}\n";
 print "cddbid: $cd{id}\n";
 print "trackno: $cd{tno}\n";
 my $n=1;
  foreach my $i ( @{$cd{track}} ) {
   print "track $n: $i\n";
   $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.




More Linux Commands

manpages/mvin_wchnstr.3ncurses.html
mvin_wchnstr(3ncurses) - get an array of complex characters
These functions return an array of complex characters in wchstr, starting at the current cursor position in the named window. Attributes (rendition) are stored

manpages/gnutls_pkcs7_get_crl_count.3.html
gnutls_pkcs7_get_crl_count(3) - API function (Man Page).....
This function will return the number of certifcates in the PKCS7 or RFC2630 crl set. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative

manpages/whline.3ncurses.html
whline(3ncurses) - create curses borders, horizontal and ver
The border, wborder and box routines draw a box around the edges of a window. Other than the window, each argument is a character with attributes: ls - left sid

manpages/circo.1.html
circo(1) - filter for circular layout of graphs (Man Page)
These are a collection of programs for drawing graphs. There is actually only one main program; the specific layout algorithms implemented as plugins. Thus, the

manpages/XcmsCIExyY.3.html
XcmsCIExyY(3) - Xcms color structure - Linux manual page....
The XcmsColor structure contains a union of substructures, each supporting color specification encoding for a particular color space. SEE ALSO XcmsAllocColor(3)

manpages/getkeycodes.8.html
getkeycodes(8) - print kernel scancode-to-keycode mapping ta
The getkeycodes command prints the kernel scancode-to-keycode mapping table. OPTIONS None. SEE ALSO setkeycodes 411toppm(1) getkeycodes.8 (Administration - Linu

manpages/showrgb.1.html
showrgb(1) - display an rgb color-name database (Man Page)
The showrgb program reads an rgb color-name database from a text file and converts it back to source form, printing the result to standard output. The default d

manpages/zdump.8.html
zdump(8) - timezone dumper (Administration - Linux man page)
Zdump prints the current time in each zonename named on the command line. These options are available: --version Output version information and exit. --help Out

manpages/ldap_tls.3.html
ldap_tls(3) - LDAP TLS initialization routines (Man Page)...
These routines are used to initiate TLS processing on an LDAP session. ldap_start_tls_s() sends a StartTLS request to a server, waits for the reply, and then in

manpages/creall.3.html
creall(3) - get real part of a complex number (Man Page)....
The creal() function returns the real part of the complex number z. One has: z = creal(z) + I * cimag(z) VERSIONS These functions first appeared in glibc in ver

manpages/operator.7.html
operator(7) - C operator precedence and order of evaluation
This manual page lists C operators and their precedence in evaluation. Operator Associativity () [] -&gt; . left to right ! ~ ++ -- + - (type) * &amp; sizeof right to

manpages/mallopt.3.html
mallopt(3) set memory allocation parameters - Linux man page
The mallopt() function adjusts parameters that control the behavior of the memory-allocation functions (see malloc(3)). The param argument specifies the paramet





We can't live, work or learn in freedom unless the software we use is free.