---
name: "mpgenplaylists"
section: "1"
platform: "linux"
package: "mpdtoys"
version: "0.26-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mpgenplaylists"
---

# mpgenplaylists(1)

generate mpd playlists for each subdirectory of music

## NAME

mpgenplaylists - generate mpd playlists for each subdirectory of music

## SYNOPSIS

mpgenplaylists

## DESCRIPTION

**mpgenplaylists** generates mpd playlists.

It reads your ~/.mpdconf or /etc/mpd.conf to figure out where mpd keeps its music directory and playlist directory.

For each subdirectory of the music directory, a playlist is generated in the playlist directory. The playlists created by this tool always start with a space to avoid conflicts with your manually created playlists.

So if you keep your sound in Artist/Album/ directories, you'll get playlists named like " Artist - Album", and also playlists named just " Artist" that contain all music by that artist. An " all" playlist is also created, that contains all your music.

Each time it's run it updates the playlists, and removes any obsolete ones that it created before.

## LIMITATIONS

It does not currently sort songs in an album by track number, but instead sorts by filename.

## AUTHOR

Copyright 2007 Joey Hess \<joey@kitenet.net\>

Licensed under the GNU GPL version 2 or higher.

http://kitenet.net/~joey/code/mpdtoys
