
Music::Tag::File - Plugin module for Music::Tag to get information from filename and directory entries.

use Music::Tag
my $filename = "/var/lib/music/artist/album/track.mp3";
my $info = Music::Tag->new($filename, { quiet => 1 });
$info->add_plugin("File");
$info->get_info();
# Following prints "artist"
print "Artist is ", $info->artist;

Music::Tag::File is used to guess information about a music file from its filename, directory name, or contents of the directory it resides in.
This plugin will not overwrite values found by other plugins.

No values are required (except filename, which is usually provided on object creation).

Derived from directory file is in.
Derived from parent directory of directory file is in.
Derived from first number(s) found in file.
From file with initial numbers removed.
Set to 1 of 1 if no value set.
Looks for folder.png, folder.jpg, or cover.jpg
Looks for file of same name as filename with .txt extension.
Looks for any pdf file.

If true will overwrite lyrics with values found by plugin.
If true will overwrite picture with values found by plugin.
If true will not save lyrics.
If true will not save cover.

Returns the default options for the plugin.
Saves info such as image files, lyrics, etc. Note: Currently calls save_lyrics method for all files that do not end in .mp3 unless np_savelyrics is set.
Gathers info from file name, text files, etc.
Save lyrics to a text file.
Save cover picture to disk.

This method is always unreliable unless great care is taken in file naming.

Music::Tag, Music::Tag::Amazon, Music::Tag::FLAC, Music::Tag::Lyrics, Music::Tag::M4A, Music::Tag::MP3, Music::Tag::MusicBrainz, Music::Tag::OGG, Music::Tag::Option,

Edward Allen III <ealleniii _at_ cpan _dot_ org>

Copyright (c) 2007 Edward Allen III. Some rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, distributed with Perl.