Client:Playlistbuilder
From Music Player Daemon Community Wiki
- Download: playlistbuilder
- Description: A little ruby script that uses Audioscrobbler to append songs from artists similar to the one you're currently listening to the current playlist.
- Installation: After downloading just copy it to a place of your choice, i.e. (as root) /usr/local/bin
# on many unix platforms (including Mac OS X) the following should do the trick sudo wget --output-document=/usr/local/bin/playlistbuilder --no-check-certificate https://trac.fs.ei.tum.de/musik/browser/mpd/playlistbuilder/playlistbuilder?format=raw sudo chmod a+x /usr/local/bin/playlistbuilder sudo gem install scrobbler librmpd
$ playlistbuilder --help
Builds a MPD playlist based on similar artists.
Every parameter is an artist.
If no artist is given, MPD is queued for the current track.
For more infos: $ view /usr/local/bin/playlistbuilder
-s, --silent Don't write status messages
-n, --no-mpd Don't interact with MPD
-p, --pretend Just pretend every acton
-d, --allow-duplicates Don't check current playlist to avoied duplicates
-o, --only-similar Don't allow tracks by the given artists themselves
-t, --tags Treat parameters as tags instead of artists
-m, --match MATCH Percental limit of what a 'similar' artist is
Detault 90
-i, --items ITEMS Max items to enqueue
Detault all
-e, --exclude REGEX Regular expression to exclude specific artists
Get the artist of the current song, look up some similar artists, search your mpd-music for these artists and add all songs of them to the playlist
$ playlistbuilder
Queue songs from artists tagged as 'rock' or 'jazz'. The artists have to be tagged at least 60% as often as the one with the most tags
$ playlistbuilder -m 60 --tags rock jazz
Look up your music for artists similar to the Arctic Monkeys and the Kaiser Chiefs and add 5 similar songs randomly
$ playlistbuilder --items 5 "arctic monkeys" "kaiser chiefs" # you may also use -i
Use the -p (--pretend) switch to do all but the actual appending. Use the -m (--match) to give an other match-level (default 90, lower means the artist is less similar but you may got more matches within your music). Use -s (--silent) to supress non-error output. With -n (--no-mpd) you can disable the MPD-interaction and only see the list of similar artists. You can exclude artists via -e (--exclude). This can be handy if one artist is a substring of an other.
$ playlistbuilder -p -e fatboy atb
playlistbuilder uses the same env-vars as mpc, so you can use MPD_HOST and MPD_PORT to configure the connection.
see also: lastfmpdqc
