Playlist is a small command line utility to create and work with playlists.
Tools for working with playlists. Supports M3U and PLS.
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/.
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.
To create a playlist in the current working directory with a default format and a default name.
To merge several playlists into one.