DragonFly On-Line Manual Pages

Search: Section:  


CDDBTOFILENAME(1)     User Contributed Perl Documentation    CDDBTOFILENAME(1)

NAME

cddbtofilename - rename files according to cddb web page

SYNOPSIS

cddbtofilename [-v] [-q] [-d] [-a] [-t] [-g] [-f] [-h] [cddbfile|-] [file.mp3...]

DESCRIPTION

cddbtofilename takes data from the cddb (http://www.gracenote.com) web page and renames files accordingly. As cddbtofilename works by scraping the web page, it can easily break if gracenote redesign the web site. If that happens, check the address below for an update. As cddtofilename uses data from the web page, unlike many other freedb/cddb based tools, it has no need for the original CD. Input from cddbfile can be either html or formatted output from lynx(1) (either from "lynx -dump page.html" or from pressing p then selecting Save to a local file from within lynx (when you have found the page you want). If raw html is passed to cddbtofilename, it runs lynx to format it before parsing. MP3::Archive(3) is used for creating filenames and deciding whether a particular track should be treated as an album or non-album track (unless overridden by -a or -t), see MP3::Archive::Config for details on configuring .mp3archiverc to specify your filename styles.

OPTIONS

-v Verbose output. -q Quiet (no output). This is the default. -d Dry run. Just prints the changes it would make without actually doing them. -a Treat files as album tracks. -t Treat files as non-album tracks. -g Guess whether to treat files as album tracks or not, based on the current directory of the file. -f If the number of files specified does not agree with the number listed in the cddbfile, normally cddbtofilename will abort. With this option it will warn you then carry on, renaming as many files as it can. Use with care. -h Show a short help message.

BUGS

None known. Please report any found to ianb@nessie.mcc.ac.uk

SEE ALSO

MP3::Archive(3), MP3::Archive::Config(3), freedbtofilename(1), mp3-archive-tools(1), mp3lint(1), lynx(1)

AUTHOR

Ian Beckwith <ianb@nessie.mcc.ac.uk>

AVAILABILITY

cddbtofilename is part of the mp3-archive-tools package. The latest version can be found at: http://nessie.mcc.ac.uk/~ianb/projects/mp3-archive-tools/

COPYRIGHT

Copyright 2003 Ian Beckwith <ianb@nessie.mcc.ac.uk> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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 the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. perl v5.20.2 2003-12-12 CDDBTOFILENAME(1)

Search: Section: