Discover Packages
github.com/Padrosum/pmusic
internal
cover
package
Version:
v0.0.0-...-0381c42
Opens a new window with list of versions in this module.
Published: Aug 17, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
ErrNotFound = errors .New ("no cover art found")
ErrNoChafa = errors .New ("chafa is not installed")
ErrNoMetadata = errors .New ("no embedded or folder art, and no metadata to search online")
)
DefaultCacheDir returns the per-user cache directory for downloaded covers.
Render converts art to ANSI symbols via chafa and returns its display lines.
Art is a resolved cover image plus where it came from.
Resolve finds cover art for a track: embedded tag art first, then a cover
file beside the track, then an online fetch cached on disk.
Source describes where the cover art came from, shown in the UI.
const (
SourceEmbedded Source = "embedded"
SourceFolder Source = "folder file"
SourceCache Source = "cache"
SourceOnline Source = "iTunes"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.