Artwork
Melon gets artwork from a few places: the pictures embedded in your music files, artwork people upload, and for artists, online sources called artwork providers. Anything without art gets Melon's default image.
Where Art Comes From
- Tracks use the pictures inside the file's own tags.
- Albums don't have their own art unless someone uploads some. Until then, an album uses the art of its first track that has any.
- Artists get their picture and banner from artwork providers, or from an upload.
- Playlists and collections only have art if someone uploads it.
You upload with the Art Upload endpoints, remove with Art Deletion, and get art with the Download endpoints.
Artwork Providers
A provider is an online source Melon can ask for artist pictures and banners. Melon comes with two:
| Provider | Gives | Needs |
|---|---|---|
| Deezer | Artist pictures | Nothing, it's on by default. |
| fanart.tv | Artist pictures and banners | A free API key, and the artist's MusicBrainz id in your tags. |
In MelonGUI or MelonCLI, under Library → Artwork, you turn providers on and off, put them in order, and add API keys. Melon asks the providers in that order and keeps the first image it finds for each kind. Plugins can add more providers, see IHost.
How It's Stored
Track art stays inside the track's file. Everything else is saved in
Melon's data folder, named by the object's id and the image's index:
ArtistPfps/66bc9aadab7ba419497e6a97-0.jpeg.
Tracks, albums, and artist pictures and banners can have more than one image, and tracks, albums and artists have a property for which one is the default. Playlists, collections, and the default artwork only have one at a time.
When you ask for an album's art and it doesn't have its own, the index
you ask for is used on the track it borrows from. So
/api/download/album-art?id=66bc9aadab7ba419497e6a97&index=2
gets the 3rd picture of that album's first track with art. If there is
no 3rd picture, you get the default artwork.
Default Artwork
Melon's default image is built into Melon itself, so it can't be deleted. You can replace it by uploading your own default; that one is saved on disk, and deleting it brings the built-in one back.