Concert Tagger is a command-line utility for matching local FLAC concert folders with the bundled Etree database, tagging the audio files, and managing cover artwork. The current tooling is built around Grateful Dead collections, but any artist present in the database can be processed.
- Match folders to Etree shnids by verifying FLAC checksums.
- Import disc/track numbers, titles, and show metadata directly from the database. If track information is not present in the database, an attempt to parse the info file will be made. There is an optional filename-based fallback, but this is left off by default as the filenames are not always titles.
- Embed and manage artwork (including
folder.jpg) according to per-artist rules. - Structured logging with explicit error codes so batch runs are easy to monitor.
- Python 3.11+ (tested on 3.13).
- Python dependencies (installed automatically if you use the shipped
.venv/uvworkflow):mutagentqdmtomllib(shipped with Python =3.11)
- SQLite Etree database (
db/etree_scrape.db). The first run seeds it from the CSV snapshots underdb/csv/.
# Option 1: let uv manage the environment (creates .venv automatically)
uv sync
# Option 2: create/activate your own venv and install dependencies manually
python -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\activate
pip install mutagen tqdmRun the orchestrator via cli.py:
python cli.py --helpTypical flows:
# Process every show folder directly under the parent directory
python cli.py --parent-folder "X:/Downloads/_FTP/_Tag_test"
# Tag explicit folders and remove existing tags first
python cli.py \
"X:/Shows/gd1985-11-17.172965" "X:/Shows/gd1974-06-18.002341" \
--clear-tags
# Use alternate config/db locations and a custom log file
python cli.py --config config.toml --database db/etree_scrape.db \
--log-file logs/tagger.log --parent-folder "X:/Shows_to_process"CLI options of note:
--parent-folder: expand immediate subdirectories and process each as a show.--clear-tags: drop all non-artwork FLAC tags before writing new metadata.--log-file: where structured run diagnostics and per-show tracebacks are saved.--config,--database: override the default config or SQLite locations.
Exit codes are non-zero on failures so the command works well in batch scripts.
When there are changes to approve, the CLI prints a preview and writes a timestamped
*_changes.txt manifest alongside the run log. The preview counts shows that
will change, are already tagged per preferences, or are expected to fail.
It lists each blocked show with its reason. Review the manifest
for failure reasons, FLAC tag edits, artwork changes and backups, folder
renames, and catalog imports.
Type exactly yes to apply the plan. Enter, any other answer, or end of input
cancels the plan. The CLI skips unchanged FLACs and shows whose files change
after the preview.
Setup defaults the base log path to tagger_logs/tag_log.log under your saved
library or show folder. Each run prefixes the filename with a timestamp, for
example 2026-11-21_14-30-05_123456_tag_log.log. Choose a different base path
during setup, edit run.log_file in your
user TOML, or use --log-file for a single run. Setup offers verbose
diagnostic logging, which defaults to off. Set preferences.verbose_logging = true
in your user TOML for DEBUG-level detail in the terminal and log file.
Run python cli.py in an interactive terminal. Setup shows the defaults as it
asks for your library, catalog, logging, and artwork preferences. Press Enter to
accept a displayed default. Setup saves your preferences and prints the full
path. You can edit that TOML file in a text editor. Setup leaves show files
untouched.
The Album tag section lets you choose the fields in the FLAC album name
and previews the result. Advanced options cover field order, separators, and
recording-type labels such as SBD, AUD, MTX, and Ultramatrix. Track titles
offers a segue marker and filename fallback. Performance date tags can
write the catalog date to DATE and optionally to separate YEAR, MONTH,
and DAY fields.
The saved file is %APPDATA%\EtreeTag\config.toml on Windows and
$XDG_CONFIG_HOME/etree-tag/config.toml on other platforms, with
~/.config/etree-tag/config.toml used when XDG_CONFIG_HOME is unset.
Later runs use your saved library and preferences. Passing show folders or
--parent-folder overrides the saved library for that run. Use --clear-tags
or --no-clear-tags to override the saved tag-clearing preference.
The shipped config.toml supplies defaults. To keep using an existing TOML
directly, pass --config PATH. To adopt existing choices into the managed
configuration, transfer them to the file created by setup, keeping its
config_version and making any paths relative to that file or absolute.
If your saved TOML has config_version = 1, run python cli.py in an
interactive terminal. Setup keeps your existing library and artwork preferences
and asks the Album tag, Track titles, and Performance date questions. Press
Enter to keep the displayed values. After saving version 2, the CLI prints
the backup path and exits before tagging. The backup retains the original
formatting and comments. If you skip a release, setup applies each available
config upgrade in order and saves only after all steps succeed.
config.toml drives behaviour. Key settings:
[preferences]
year_format = "YYYY"
segue_string = ">"
soundboard_abbrev = "SBD"
aud_abbrev = "AUD"
verbose_logging = false
enable_filename_fallback = false # opt-in for filename-derived metadata
write_date = false # write the performance date to DATE
write_date_parts = false # also write YEAR, MONTH, and DAY where known
[album_tag]
include_bitrate = true
include_bitrate_not16_only = true
include_shnid = true
include_venue = false
include_city = true
include_recording_type = true
order = ["show_date", "city", "venue", "recording_type", "shnid", "bitrate"]
[cover]
clear_existing_artwork = false
retain_existing_artwork = true
[cover.default_images]
gd = "GD_Art/default.jpg"
[cover.artwork_folders]
gd = ["GD_Art/EE_Artwork/", "GD_Art/TV_Artwork/"]The importer defaults to info-file metadata. To let the legacy filename parser fill in disc/track numbers and titles when info files are missing, set:
[preferences]
enable_filename_fallback = trueWhen the flag is false, metadata import stops with a MetadataImportError so callers can handle the failure explicitly.
- On first launch, the tool builds
db/etree_scrape.dbfromdb/csv/. sqliteetreedb.pycontains the read/write facade used by the tagging workflow.- Artist abbreviations (e.g.,
gd) drive artwork lookup; missing abbreviations simply skip artwork tagging with a log message.
python -m pytestThe project relies on structured logging internally. Enable verbose mode if you need to track down per-file debug output.
Released under the MIT License. See LICENSE for details.