POE::C...laylist(3pm)
π POE::C...laylist(3pm) π
okay bestie, welcome to the manual page for POE::Component::Client::MPD::Playlist (from User Contributed Perl Documentation, no less π). she's a whole module and she's here to serve.
β¨ VERSION β¨
version 2.001 β periodt.
πΈ DESCRIPTION πΈ
so POE::Component::Client::MPD::Playlist is the girl in charge of handling general purpose commands. she lives in her own dedicated module purely so that code maintenance stays easy, which is honestly so valid of her. π
here's the thing though, bestie, listen up:
To actually achieve those commands, you send the corresponding event to the POCOCM session you created. that session is the one responsible for dispatching the event wherever it needs to go. and under no circumstance β like, none, zero, nope β should you call subs or methods from this module directly. do not do it. i'm begging. π
go read POCOCM's pod to learn how to deal with answers coming back from those commands. iykyk.
and now, the moment you've been waiting for: the list of playlist-related events that POCOCM accepts. π
π RETRIEVING INFORMATION π
pl.as_items( )β returns an array ofAudio::MPD::Common::Item::Songs, one for each of the songs chillin' in the current playlist. one item per song, no more no less. πpl.items_changed_since( $plversion )β returns a list of all the songs (asAudio::MPD::Common::Item::Songobjects) that got added to the playlist since playlist$plversion. it's giving "what did i miss" energy. β¨
ββ ADDING / REMOVING SONGS ββ
pl.add( $path, $path, ... )β adds the songs identified by$path(relative to MPD's music directory) to the current playlist. drop 'em in, bestie. πΆpl.delete( $number, $number, ... )β removes song$numberfrom the current playlist. heads up: numbering starts from0, because of course it does. πpl.deleteid( $songid, $songid, ... )β removes the specified$songidfrom the current playlist. that id is the one assigned by mpd when the song was inserted in the playlist, so it's the official receipt. π§Ύpl.clear( )β removes all the songs from the current playlist. scorched earth, no survivors, iconic behaviour. π₯pl.crop( )β removes all of the songs from the current playlist *except* the current one. keeping only the main character, as she deserves. π
π CHANGING PLAYLIST ORDER π
pl.shuffle( )β shuffles the current playlist. chaos mode activated. πpl.swap( $song1, $song2 )β swaps the positions of song number$song1and$song2in the current playlist. trade places, girlies. π«pl.swapid( $songid1, $songid2 )β swaps the positions of song id$songid1and$songid2in the current playlist. same swap, but by id this time. π¦pl.move( $song, $newpos )β moves song number$songto the position$newpos. she's relocating. πpl.moveid( $songid, $newpos )β moves song id$songidto the position$newpos. again, same move, but by id. no cap. π
π MANAGING PLAYLISTS π
pl.load( $playlist )β loads the list of songs from the specified$playlistfile. opening the vault. ποΈpl.save( $playlist )β saves the current playlist to a file called$playlistin MPD's playlist directory. archive her, she ate. πΎpl.rm( $playlist )β deletes the playlist named$playlistfrom MPD's playlist directory. gone, reduced to atoms. π
π AUTHOR π
Jerome Quelin π
βοΈ 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, you're all caught up. this lil doc was brought to you by perl v5.40.1 on 2025-04-11, source POE::C...laylist(3pm) β and yes she's still that girl. bye mwah πππΈ
π¦ where this page comes from
- debian trixie: libpoe-component-client-mpd-perl 2.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpoe-component-client-mpd-perl 2.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpoe-component-client-mpd-perl 2.001-5 Β· 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