Kodi Music Processing Phase 6: Album Artist Artwork
2,888 Total views across this article’s versions; includes the historical baseline where available.
This article is Part 6 of a 10-part series exploring the Kodi multi-media player's music file scanning and metadata scraping processes via logic flow diagrams.
Album Artist Artwork Processing
This historical explanation is checked against Kodi 18.5 (Leia), commit 37f51f6e63cb. The pinned MusicInfoScanner.cpp source is the reference for the branches below. The original research checkout was not recorded; this pin identifies the version checked for this revision.
Phase 5 covers album and disc-set artwork. This part concerns album artists: the later block of RetrieveLocalArt(), lines 1171–1224, followed by SetArtistArtwork(). It does not resolve duplicate albums or repeat the album/disc artwork phase.
| Step | Checked behavior |
|---|---|
| Choose artists | Visit album-artist credits for albums added by the scan. Record each artist ID as processed to avoid repeating the lookup during this pass. |
| Find missing artwork types | Read existing artist artwork and request only the missing configured types; already assigned artwork is retained. |
| Choose local folder | Use the artist subfolder returned for the configured Artist Information Folder if it exists. When it exists, that is the only local folder checked, even if an image is missing. |
| Compatibility fallback | Only when that subfolder does not exist, the album has a usable unique/common album path, and this is the first album artist, use the folder immediately above the album folder. Other credited artists do not get this fallback in RetrieveLocalArt(). |
| Fill each missing type | Try the selected local folder. If no local image is found, SetArtistArtwork() can use the first suitable URL from the artist object’s existing scraped image lists. It does not itself perform a new metadata search. |
| Save results | Cache and register any images found. Missing types remain missing if neither source yields an image. Later optional scraping is a separate operation. |
For a collaboration credited to A and B, both can have their own artist-information subfolders. If neither subfolder exists, only A, the first credited artist, is eligible for the parent-of-album fallback in this pass. If A’s artist-information subfolder exists but contains no usable image, Kodi does not then try the parent folder.
The pinned scanner also has a separate UpdateDatabaseArtistInfo() path after an artist-information request. Its fallback uses GetOldArtistPath(), with its own unique-folder rules. Do not apply the first-credit rule above indiscriminately to every artist-artwork request.
The original diagram remains available for comparison. Its fallback box omits the first-album-artist and usable-path conditions, and its scraped-image box must be read as use of an available URL list, not an instruction to launch a new scrape.
Next up is Phase 7: Album NFO File Processing.