From 011702b518c78f3a8d4635e3c7f3b93780fc585c Mon Sep 17 00:00:00 2001 From: lshprung Date: Sat, 2 Oct 2021 16:06:24 -0700 Subject: Created README --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..42b67ea --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +## Introduction + +A set of Perl scripts to help automate the creation of audio playlists. This repository contains two scripts: + +- `build_db.plx` - Generate a sqlite3 database for your audio library, including each file's metadata tags +- `build_playlists.plx` - Generate m3u playlist files based on the sqlite3 database generated by `build_db.plx` + +For usage of these scripts, append the `--help` flag + +### Example + +To build a database of all audio files in your `$HOME/Music` directory, and save the database as `$HOME/Music/library.db`: + +``` +./build_db.plx +``` + +To create a set of m3u playlists for every album in the database, and output all the m3u files in `$HOME/Music/playlists`: + +``` +./build_playlists.plx ALBUM,ALBUMARTIST "$HOME/Music/playlists/{ALBUMARTIST} - {ALBUM}.m3u" +``` + +To create an m3u playlist of all files in the database where the 'ARTIST' tag is 'Steely Dan', and save it as `steely_dan.m3u` in the current working directory: + +``` +./build_playlists.plx --sql "ARTIST='Steely Dan';" steely_dan.m3u +``` -- cgit