Music::Tag::Auto - Plugin module for Music::Tag to load other plugins by file extension.
use Music::Tag my $filename = "/var/lib/music/artist/album/track.flac"; my $info = Music::Tag->new($filename, { quiet => 1 }, "Auto"); $info->get_info(); print "Artist is ", $info->artist;
Music::Tag::Auto is loaded automatically in Music::Tag .3 and newer to load other plugins.
None.
Option is a hash reference. Reference maps file extensions to plugins. Default is:
{ mp3 => "MP3", m4a => "M4A", m4p => "M4A", mp4 => "M4A", m4b => "M4A", '3gp' => "M4A", ogg => "OGG", flac => "FLAC" }
Returns a Music::Tag object based on file extension, if available. Otherwise returns undef.
Returns the default options for the plugin.
Not defined for this plugin.
No known additional bugs provided by this Module.
Music::Tag, Music::Tag::FLAC, Music::Tag::Lyrics, Music::Tag::M4A, Music::Tag::MP3, Music::Tag::OGG
Edward Allen III <ealleniii _at_ cpan _dot_ org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either:
a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" which comes with Perl.
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 named "Copying". If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or visit their web page on the Internet at http://www.gnu.org/copyleft/gpl.html.
Copyright © 2007 Edward Allen III. Some rights reserved.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '©'. Assuming UTF-8
To install Music::Tag, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Music::Tag
CPAN shell
perl -MCPAN -e shell install Music::Tag
For more information on module installation, please visit the detailed CPAN module installation guide.