Skip to main content

Module cover

Module cover 

Source
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§

EmbedOptions
EmbedStats
FetchOptions
FetchStats

Functions§

embed
For every album dir under opts.path that 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 + save folder.jpg for each. progress is called with a human-readable status line for each album processed.