Audio:...::Stats(3pm)
β¨ Audio::MPD::Common::Stats β the vibe check on ur MPD server β¨
okay so bestie, this is a page from the User Contributed Perl Documentation section, and it's literally called Audio::MPD::Common::Stats (man page name Audio:...::Stats(3pm)). sit down, grab a strawberry, let's get into it π
π NAME π
Audio::MPD::Common::Stats β a whole class that represents MPD stats. that's it, that's the job. π
πΈ VERSION πΈ
version 2.003 β vintage but iconic, we respect the elders π«Ά
π¦ DESCRIPTION π¦
so the MPD server keeps track of some general information about itself. like, it's got receipts. those bits of info can be queried with the mpd modules, and some of them get served to you as an Audio::MPD::Common::Stats object. cute, right?
but listen β an Audio::MPD::Common::Stats object does not update itself regularly. it's giving "screenshot of a moment", not "live stream". so you should use it immediately. don't leave it sitting in a variable like a leftover smoothie. it will not refresh for you, no cap.
Note: one should never ever instantiate anAudio::MPD::Common::Statsobject directly β use thempdmodules instead. like, do not do it. i'm serious. bestie. no. π
π ATTRIBUTES π
$stats->artists;
Number of artists in the music database. that's a lot of main characters π
$stats->albums;
Number of albums in the music database. yes queen, count them all π
$stats->songs;
Number of songs in the music database. the discography is thriving π₯
$stats->uptime;
Daemon uptime (time since last startup) in seconds. how long has this baby been awake. no sleep, all grind β
$stats->playtime;
Time length of music played. literally the amount of music juice poured out of this thing π΅
$stats->db_playtime;
Sum of all song times in the music database. not what's been played β the total duration of everything in there. different vibe, don't mix them up π§
$stats->db_update;
Last database update in UNIX time. when did this db last get a glow-up π
π AUTHOR π
Jerome Quelin β the original author, an absolute legend for this π«‘
π 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. slay, legally speaking π
okay that's the whole page bestie, go forth and read ur stats responsibly β¨ this was page Audio:...::Stats(3pm) from perl v5.40.1, dated 2025-04-11 β mwah, bye π
π¦ 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