NAME

Music::Tag::Auto - Plugin module for Music::Tag to load other plugins by file extension.

SYNOPSIS

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;

DESCRIPTION

Music::Tag::Auto is loaded automatically in Music::Tag .3 and newer to load other plugins.

REQUIRED VALUES

None.

SET VALUES

None.

OPTIONS

autoplugin

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"   }

METHODS

new($parent, $options)

Returns a Music::Tag object based on file extension, if available. Otherwise returns undef.

default_options

Returns the default options for the plugin.

set_tag

Not defined for this plugin.

get_tag

Not defined for this plugin.

BUGS

No known additional bugs provided by this Module.

SEE ALSO

Music::Tag, Music::Tag::FLAC, Music::Tag::Lyrics, Music::Tag::M4A, Music::Tag::MP3, Music::Tag::OGG

AUTHOR

Edward Allen III <ealleniii _at_ cpan _dot_ org>

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, distributed with Perl.

COPYRIGHT

Copyright (c) 2007 Edward Allen III. Some rights reserved.