mpdrandom
mpdrandom copied to clipboard
Play a random album in mpd.
mpdrandom
Is a script that allows you to play entire albums randomly through mpd
NOTE: This script expects your music library to be properly tagged, personally on linux i use beets
Features
- Pick a random album from the playlist and play it.
- Daemon mode: Play a random album when you reach the end of the current one.
- Shuffle: Shuffle all albums in the current playlist.
- Play albums randomly from the library.
- Play albums randomly from a base directory.
Installation
For Arch Linux users you may use the pkgbuild from https://aur.archlinux.org/packages/mpdrandom-git/
For other distros
git clone git://github.com/axujen/mpdrandom.git
cd mpdrandom
sudo ./setup.py install
Usage
usage: mpdrandom [-h] [-d] [-l] [-c] [-z] [-p PORT] [-u HOST]
[--password PASSWORD] [-b BASE]
Pick and play a random album from the current playlist
optional arguments:
-h, --help show this help message and exit
-d, --daemon run the script in daemon mode.
-l, --library use the whole library instead of playlist.
-c, --clear clear the playlist before adding new album when using the
whole library
-z, --shuffle shuffle the albums in the current playlist.
-p PORT, --port PORT specify mpd's port (defaults to 6600)
-u HOST, --host HOST specify mpd's host (defaults to 127.0.0.1)
--password PASSWORD specify mpd's password
-b BASE, --base BASE specify base directory for adding from library
Thanks
Thanks to kmac. His script inspired me to make my own.
Also for various pull requests: