Playlists

Playlist is a small command line utility to create and work with playlists.

Playlists

Tools for working with playlists. Supports M3U and PLS.

Installation

Using pip:

pip install playlists

Command Line Usage

From a terminal:

playlists create Music/some-album/* Playlists/my-playlist.m3u

Will generate a m3u-playlist in the Playlists/ directory. The playlist will create all media files from some-album/.

API Usage

In a python module:

import playlists

pls = playlists.Playlist(fmt='m3u', base='~/Music')
pls.add('Album/Song-1.mp3')
pls.add('Album/Song-2.mp3')
pls.write('~/Music/my_playlist.m3u')

Will create a playlist with the two songs. The paths in the playlist will be relative to ~/Music.

Documentation

Somewhere, sure.

More

See https://akeil.de/projects/playlists.html

Usage:

$ playlist create /path/to/source/*

To create a playlist in the current working directory with a default format and a default name.

Extended usage:

$ playlist merge someplaylist.m3u otherplaylist.m3u

To merge several playlists into one.