Edward J. Allen III > Music-Tag-0.4103 > Music::Tag::Option

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::Option - Plugin module for Music::Tag to set tags via tag optons

SYNOPSIS ^

        use Music::Tag

        my $filename = "/var/lib/music/artist/album/track.flac";

        my $info = Music::Tag->new($filename, { quiet => 1 }, "ogg");

        $info->add_plugin(option, { artist => "Sarah Slean" });

        $info->get_info();
           
        print "Artist is ", $info->artist;

        #Outputs "Artist is Sarah Slean"

DESCRIPTION ^

Music::Tag::Option is a plugin to set tags via the plugin option.

REQUIRED VALUES ^

None.

SET VALUES ^

Any value you would like can be set this way.

OPTIONS ^

Any tag accepted by Music::Tag.

METHODS ^

default_options

Returns the default options for the plugin.

set_tag

Sets the info in the Music::Tag file to info from options.

get_tag

Same as set_tag.

BUGS ^

No known additional bugs provided by this Module.

SEE ALSO ^

Music::Tag

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,2010 Edward Allen III. Some rights reserved.

syntax highlighting: