MPD-DYNAMIC(1p)

πŸ“¦
version 2.004 Β· 2 versions
  • 2.004 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 2.004 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, mpd-dynamic β€” it's a dynamic playlist for mpd. that's the whole vibe. πŸŽ€

this page lives in the User Contributed Perl Documentation section (it's the 1p one), so like, it's a perl thing, iykyk. πŸ¦‹


✨ VERSION ✨

this is version 2.004. periodt. πŸ’…


🌸 DESCRIPTION 🌸

so. this program implements a dynamic playlist for MPD, and it's built on top of the Audio::MPD perl module. that's the foundation, that's the lore. 🫢

MPD (music player daemon) is a cool music player, no cap, but the way it just... lacks a dynamic playlist?? tragic. and a dynamic playlist is, per definition, a playlist that changes automatically over time. so iconic. in particular, it will:

  • remove already played songs (keeping at most a given number of songs)
  • add new songs to the playlist so it never falls short of songs

and listen β€” since mpd is a daemon needing no gui to work, mpd-dynamic is also a daemon. that is, it will fork and do all its work from the background. main character energy fr fr. this way, you can fire mpd and mpd-dynamic and forget completely about your music β€” especially since mpd-dynamic is a low-resource program β€” it will just be there! :-) πŸ˜­πŸ’–


🌈 USAGE 🌈

mpd-dynamic [options]

πŸ’… OPTIONS πŸ’…

πŸŽ€ General behaviour πŸŽ€

you can customize the usage of mpd-dynamic with the following options:

  • -o[ld] <old> β€” number of old tracks to keep in the backlog. defaults to 10.
  • -n[ew] <new> β€” number of new tracks to keep in the to-be-played playlist. defaults to 10.
  • -s[leep] <sleep> β€” time spent sleeping (in seconds) before checking if playlist should be updated. defaults to 5 seconds.
  • -d[ebug] β€” run mpd-dynamic in debug mode. in particular, the program will not daemonize itself. defaults to false.
  • -e[ncoding] <encoding> β€” print debug messages with this encoding. since mpd-dynamic is meant to be a silent daemon, this option will not be used outside of debug mode. defaults to "utf-8".
  • --version
  • --usage
  • --help
  • --man

print the usual program information πŸ‘‘

note however that those flags are optional: since mpd-dynamic comes with some sane defaults, you can fire mpd-dynamic as is. no config, no stress, just vibes. ✨

⭐ Ratings ⭐

you can also take advantage of ratings if you want. with those options, songs need to have at least a given rating (or no rating yet) to be inserted β€” this way, you will only listen to your favorite songs! obsessed. πŸ’œ

ratings can be created / updated with mpd-rate.

note that if you supply a non-existant rating db-file, the rating mechanism will be ignored. 🫣

the following options control the rating mechanism:

  • -r[atings] <ratings> β€” the path of a db file with the ratings per song. the keys are the song path (relative to MPD root), and the value is an integer (the rating). defaults to "~/.mpd/ratings.db".
  • -m[in[imum]] <min> β€” the minimum rating for a song to be inserted in the playlist. defaults to 4.

πŸ‘‘ AUTHOR πŸ‘‘

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.


k that's literally it bestie, go stream ur music πŸŒΈπŸ’– ok bye, this was MPD-DYNAMIC(1p) from perl v5.34.0, dated 2022-06-08 β€” slay, ate, no crumbs. πŸ¦‹βœ¨

πŸ“¦ where this page comes from