Audio::MPD::Common::Item::Song - a song object with some audio tags
version 1.120610
Audio::MPD::Common::Item::Song is more a placeholder with some attributes. Those attributes are taken from the song tags, so some of them can be empty depending on the file.
The constructor should only be called by Audio::MPD::Common::Item's constructor.
Album of the song.
Artist of the song.
Last modification date of the song.
Disc number of the album. This is a string to allow tags such as 1/2.
1/2
Path to the song. Only attribute which will always be defined.
Genre of the song.
Id of the song in MPD's database.
Last time the song was modified.
Name of the song (for http streams).
Position of the song in the playlist.
Title of the song.
Track number of the song.
Length of the song in seconds.
Return a string representing $song. This string will be:
(in this order), depending on the existing tags of the song. The last possibility always exist of course, since it's a path.
This method is also used to automatically stringify the $song.
$song
Jerome Quelin
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Audio::MPD::Common, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::MPD::Common
CPAN shell
perl -MCPAN -e shell install Audio::MPD::Common
For more information on module installation, please visit the detailed CPAN module installation guide.