Edward J. Allen III > Music-Tag > Music::Tag::Auto

Download:
Music-Tag-0.4103.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: .4101   Source  

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 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 ^

Copyright © 2007 Edward Allen III. Some rights reserved.

syntax highlighting: