Audio:...::Song(3pm)
π Audio::MPD::Common::Item::Song β bestie edition π
okay so this is the manual page for Audio::MPD::Common::Item::Song(3pm) from the User Contributed Perl Documentation, and it's literally just a song object that carries some audio tags around with it. group chat, listen up π§β¨
β¨ VERSION β¨
version 2.003 β that's the one we're on, periodt π
π¦ DESCRIPTION π¦
Audio::MPD::Common::Item::Song is lowkey just a placeholder with some attributes attached. no cap. those attributes get yoinked straight from the song's tags, so some of them can be totally empty depending on the file β it's giving "depends on the vibe of the file" πΈ
okay important: the constructor should only be called by Audio::MPD::Common::Item's constructor. like, don't call it yourself, bestie, it's not for you π
π ATTRIBUTES π
each one comes with its own format code, iykyk π
album
Album of the song. (format code: %d) πΏ
artist
Artist of the song. (format code: %a) π€
albumartist
Artist of the album. (format code: %A) πΈ
composer
Song composer. (format code: %C) πΌ
date
Last modification date of the song. (format code: %M) π
disc
Disc number of the album. This is a string to allow tags such as "1/2". (format code: %D) π½
file
Path to the song. Only attribute which will always be defined. (format code: %f) π
genre
Genre of the song. (format code: %g) π΅
id
Id of the song in MPD's database. (format code: %i) π
last_modified
Last time the song was modified. (format code: %m) β°
name
Name of the song (for http streams). (format code: %N) π
performer
Song performer. (format code: %P) π
pos
Position of the song in the playlist. (format code: %p) π
title
Title of the song. (format code: %t) π·οΈ
track
Track number of the song. (format code: %n) π’
time
Length of the song in seconds. (format code: %l) β
added
Shows when song was added to the database. (format code: %o) π
π METHODS π
as_string
my $str = $song->as_string( [$format] );
Return a string representing $song. π«Ά if $format is specified, use it to format the string. otherwise, the string returned will be:
- either
"album = track = artist = title" - or
"artist = title" - or
"title" - or
"file"
(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. β¨
β οΈ WARNING: the format codes are not yet definitive and may be subject to change! no fr fr, they might switch up on you π
πΈ AUTHOR πΈ
Jerome Quelin β the icon, the moment, the legend π
π COPYRIGHT AND LICENSE π
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. π«Ά
and that's the whole page, bestie β this was perl v5.40.1 energy, dated 2025-04-11, and it ATE πβ¨ππ¦
π¦ where this page comes from
- debian trixie: libaudio-mpd-common-perl 2.003-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libaudio-mpd-common-perl 2.003-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libaudio-mpd-common-perl 2.003-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms