Enrich
Add artwork, posters, NFO metadata files, and MKV tags to your library.
Usage
The <library> argument must point to an existing CrateDigger library (a folder containing a .cratedigger marker created by the organize command).
Options
| Option | Short | Description |
|---|---|---|
--only <ops> |
Comma-separated list of operations to run | |
--regenerate |
Regenerate artifacts even if they already exist | |
--kodi-sync |
Notify Kodi to refresh updated items | |
--config <path> |
Path to config.json | |
--quiet |
-q |
Suppress per-file progress |
--verbose |
-v |
Show detailed progress and decisions |
--debug |
Show cache hits, retries, and internal mechanics |
The --only flag
Use --only to run a subset of operations. Valid values:
| Value | Operation |
|---|---|
nfo |
Generate NFO metadata files |
art |
Extract or set cover art |
fanart |
Look up artist artwork on fanart.tv |
posters |
Generate poster images |
tags |
Write MKV tags |
chapter_mbids |
Resolve per-chapter MusicBrainz artist IDs |
Combine multiple values with commas:
cratedigger enrich ~/Music/Library/ --only nfo,art
cratedigger enrich ~/Music/Library/ --only posters,tags
When --only is omitted, all operations run.
Operations
Cover art (art)
Extracts or assigns cover art for each media file. The cover image is placed alongside the media file.
Fanart (fanart)
Looks up artist artwork on fanart.tv using the MusicBrainz ID. Downloads artist backgrounds and thumbnails for use in poster generation and Kodi display.
Requires fanart.enabled: true in your config (enabled by default). A built-in project API key is included. You can optionally add your own personal API key for faster cache updates.
Posters (posters)
Generates poster images for each media file and album-level poster images (folder.jpg) for each folder. Poster backgrounds are selected based on priority chains defined in poster_settings:
- Artist backgrounds: dj_artwork (from 1001Tracklists), fanart_tv, gradient fallback
- Festival backgrounds: curated_logo, gradient fallback
- Year backgrounds: gradient fallback
Album posters are generated per folder and use a festival logo if available. Use the audit-logos command to check logo coverage.
NFO files (nfo)
Creates Kodi-compatible NFO metadata files alongside each media file. NFO files include title, artist, year, genre, and other metadata. Genre defaults are configurable via nfo_settings.
MKV tags (tags)
Writes structured MKV tags into each file, including artist, title, date, and other metadata fields extracted during analysis and identification.
Chapter MBIDs (chapter_mbids)
Reads PERFORMER_NAMES on each chapter (written by identify), resolves every unique artist name to a MusicBrainz artist ID, and writes MUSICBRAINZ_ARTISTIDS back onto the chapter. The value is pipe-joined and aligned slot-for-slot with PERFORMER_NAMES and PERFORMER_SLUGS; unresolved names leave an empty slot ("") so downstream consumers can zip the three tags by index to produce multi-valued FLAC artist tags.
Lookup precedence for each unique artist name:
- User override file:
~/.cratedigger/artist_mbids.json(case-insensitive, never expires). - Auto cache:
~/.cratedigger/mbid_cache.json(TTL-bound, populated by MusicBrainz searches). - MusicBrainz search: fresh HTTP lookup, result written to the auto cache.
The override file is user-curated; CrateDigger never writes to it, and overrides are never promoted into the auto cache.
Override file format (~/.cratedigger/artist_mbids.json):
{
"Afrojack": "3abb6f9f-5b6a-4f1f-8a2d-1111111111aa",
"Oliver Heldens": "6e7dde91-4c02-47ea-a2b4-2222222222bb"
}
Keys match artist names case-insensitively.
Unresolved names log a WARNING, once per unique name per run:
Fix loop: run enrich --only chapter_mbids, read the WARNING lines, look up the correct MBIDs on musicbrainz.org, add them to the override file, then rerun:
--regenerate re-runs the MBID path even on chapters that already have a MUSICBRAINZ_ARTISTIDS tag, which is how newly added overrides reach files that were enriched earlier.
Examples
Enrich an entire library with all operations:
Only generate NFO files:
Regenerate posters even if they already exist:
Enrich and sync with Kodi: