MP3::CreateInlayCard - create a CD inlay label for a directory of MP3 files
use MP3::CreateInlayCard; print MP3::CreateInlayCard::create_inlay( {dir => $dir, template => $template}); # $dir is the directory containing the MP3 files. If not specified, we'll # use the current directory. # $template is the filename of a template which HTML::Template should # read and populate. Alternatively, it can be a scalar reference, in which # case it will be taken to be the template contents to use. If it's not # supplied, a simple default built-in template will be used. # If you can't be bothered to write a script to call this module, use # 'makeinlay.pl' distributed with this package, or just do: perl -MMP3::CreateInlayCard -e \ "print MP3::CreateInlayCard(create_inlay({ (see example above) });" # If you're in the directory containing the MP3's, and you want to use the # built-in default template, just supply an empty hashref: perl -MMP3::CreateInlayCard \ -e "print MP3::CreateInlayCard(create_inlay({});" # or, more easily, use the eg/createinlay.pl script supplied with this # module. (Perhaps copy it to somewhere in your path and rename it to # 'createinlay', so you can just change directory into the appropriate # place and type 'createinlay').
Reads a directory of MP3s, and produces a HTML file you can print for a nice "inlay" for a CD case. Useful if you're burning a directory full of MP3s to a CD, and want an inlay label created for you.
Go through the specified directory and produce the inlay.
Takes a hashref of:
The directory containing the MP3 files
A scalar containing the filename of a template which HTML::Template should read and populate. Alternatively, it can be a scalar reference, in which case it will be taken to be the template contents to use. If it's not supplied, a simple default built-in template will be used.
Probably. If you find any, let me know - raising a ticket on rt.cpan.org is the recommended way, or you can mail me directly if you prefer.
This module assumes that tracks will be written to the CD in the order they appear in the directory.
David Precious, <davidp@preshweb.co.uk>
All bug reports, feature requests, patches etc welcome.
Copyright (C) 2008-2009 by David Precious
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.
To install MP3::CreateInlayCard, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MP3::CreateInlayCard
CPAN shell
perl -MCPAN -e shell install MP3::CreateInlayCard
For more information on module installation, please visit the detailed CPAN module installation guide.