Expand description
Cover art fetcher: walks a library, finds album dirs without folder.jpg,
queries MusicBrainz → CAA then iTunes as fallback, saves folder.jpg.
Network calls require --online (enforced by the CLI layer).
Results are cached in $XDG_CACHE_HOME/dapctl/metadata/cover_cache.json
with a 30-day TTL so repeated runs don’t hammer the APIs.
Modules§
- itunes
- iTunes Search API fallback for cover art.
- musicbrainz
- MusicBrainz search + Cover Art Archive fetch.
Structs§
Functions§
- embed
- For every album dir under
opts.paththat has a cover file on disk (folder.jpg/cover.jpg/ …), embed it into each audio file’s tags. - fetch
- Walk
opts.path, find album dirs without cover art, and fetch + savefolder.jpgfor each.progressis called with a human-readable status line for each album processed.