[GH-ISSUE #1730] Artist art not loading / showing up #951

Closed
opened 2026-02-26 02:34:43 +03:00 by kerem · 9 comments
Owner

Originally created by @volcs0 on GitHub (Dec 23, 2023).
Original GitHub issue: https://github.com/koel/koel/issues/1730

Describe the bug
Artists are not appearing (but albums are)

Steps to reproduce the behavior:
Click "artist" or artist view
Expect to see artist art but only see Koel default logo

When I manually add artist art, it "sticks"
But when artist art is in the folder, it is not being picked up.
And if there is no artist art in the folder, it is not being sourced from anywhere.

What is the expected behavior? Should artists be pulled from somewhere? Are they only locally pulled?

Environment

Koel version 6.11.12
OS: Linux
Browser: Edge, Chrome
PHP version 8.1.8
Node version : unknown

Screenshot

Screenshot 2023-12-23 at 12 22 24
Originally created by @volcs0 on GitHub (Dec 23, 2023). Original GitHub issue: https://github.com/koel/koel/issues/1730 **Describe the bug** Artists are not appearing (but albums are) Steps to reproduce the behavior: Click "artist" or artist view Expect to see artist art but only see Koel default logo When I manually add artist art, it "sticks" But when artist art is in the folder, it is not being picked up. And if there is no artist art in the folder, it is not being sourced from anywhere. What is the expected behavior? Should artists be pulled from somewhere? Are they only locally pulled? Environment Koel version 6.11.12 OS: Linux Browser: Edge, Chrome PHP version 8.1.8 Node version : unknown Screenshot <img width="1771" alt="Screenshot 2023-12-23 at 12 22 24" src="https://github.com/koel/koel/assets/799188/28ce7ab9-cfc7-4e10-a97e-3dc3bcdc0891">
kerem closed this issue 2026-02-26 02:34:43 +03:00
Author
Owner

@volcs0 commented on GitHub (Dec 23, 2023):

I see in another issue that the answer it to configure spotify - will try this.

<!-- gh-comment-id:1868355901 --> @volcs0 commented on GitHub (Dec 23, 2023): I see in another issue that the answer it to configure spotify - will try this.
Author
Owner

@volcs0 commented on GitHub (Dec 25, 2023):

This did not work. Any thoughts @phanan ? I don't have any artist images - I've tried a lot of things....

  1. Artist art in the folder
  2. Configuring spotify with the environment variables
  3. I can add them manually, but I have thousands.

Thanks.

<!-- gh-comment-id:1869063224 --> @volcs0 commented on GitHub (Dec 25, 2023): This did not work. Any thoughts @phanan ? I don't have any artist images - I've tried a lot of things.... 1. Artist art in the folder 2. Configuring spotify with the environment variables 3. I can add them manually, but I have thousands. Thanks.
Author
Owner

@phanan commented on GitHub (Dec 25, 2023):

Artist arts are not pulled from Spotify "at once" (as I'd presume you're expecting from that screenshot). Rather, when you play a song, Koel will attempt to get its album and artist art if one is not available.

<!-- gh-comment-id:1869078545 --> @phanan commented on GitHub (Dec 25, 2023): Artist arts are not pulled from Spotify "at once" (as I'd presume you're expecting from that screenshot). Rather, when you play a song, Koel will attempt to get its album and artist art if one is not available.
Author
Owner

@volcs0 commented on GitHub (Dec 25, 2023):

Artist arts are not pulled from Spotify "at once" (as I'd presume you're expecting from that screenshot). Rather, when you play a song, Koel will attempt to get its album and artist art if one is not available.

I'm having trouble getting this to work.
I've open different albums, but when I go to artist view, I don't see the artist.
And when I put artist art in the folder, it also doesn't show up.
The only way I've gotten this to work is to manually drag a picture to the artist, and then it gets stored in the artists folder.
But nothing automatic is working at all.
Any help or suggestions is appreciated.

https://imgur.com/a/7Rei0FL

<!-- gh-comment-id:1869119471 --> @volcs0 commented on GitHub (Dec 25, 2023): > Artist arts are not pulled from Spotify "at once" (as I'd presume you're expecting from that screenshot). Rather, when you play a song, Koel will attempt to get its album and artist art if one is not available. I'm having trouble getting this to work. I've open different albums, but when I go to artist view, I don't see the artist. And when I put artist art in the folder, it also doesn't show up. The only way I've gotten this to work is to manually drag a picture to the artist, and then it gets stored in the artists folder. But nothing automatic is working at all. Any help or suggestions is appreciated. https://imgur.com/a/7Rei0FL
Author
Owner

@volcs0 commented on GitHub (Dec 26, 2023):

Hey @phanan - I'm writing a python script to scape art, put it in my artists art folder and update the artist table with the name of the image file.
I see that each image has a 40-character hex name. Are these randomly generated? Or are they a hash of something?
I just tried one (with a random 40-character name) and it worked great.
I don't see how else to get artist art - nothing has worked, even Spotify.
Thanks.

<!-- gh-comment-id:1869159375 --> @volcs0 commented on GitHub (Dec 26, 2023): Hey @phanan - I'm writing a python script to scape art, put it in my artists art folder and update the artist table with the name of the image file. I see that each image has a 40-character hex name. Are these randomly generated? Or are they a hash of something? I just tried one (with a random 40-character name) and it worked great. I don't see how else to get artist art - nothing has worked, even Spotify. Thanks.
Author
Owner

@phanan commented on GitHub (Dec 26, 2023):

I think I've spotted the bug. Will try to issue a fix ASAP.

<!-- gh-comment-id:1869780065 --> @phanan commented on GitHub (Dec 26, 2023): I think I've spotted the bug. Will try to issue a fix ASAP.
Author
Owner

@phanan commented on GitHub (Dec 27, 2023):

Closed in abb0438c8d.

<!-- gh-comment-id:1870262574 --> @phanan commented on GitHub (Dec 27, 2023): Closed in abb0438c8d96ea3a6931ed570785d0e9878e6155.
Author
Owner

@Bielecki commented on GitHub (Sep 2, 2025):

For anyone who may see this in the future - it seems like Koel is downloading arts, but only when you open the artist at least once. I wrote simple js script that you can enter in the web developer console:

  • at the beginning scroll artists page to the very bottom to load all urls
  • open dev console (F12) and enter following snippet to the console:
var b = document.getElementsByClassName("name")
async function scrap() {
	for(var i = 0; i < b.length; i++){
		try {
			window.location.href = b[i].firstElementChild.href;
			await sleep(300);
		}
		catch(Error) { continue; }
	}
}

async function sleep(ms) {
  await new Promise((resolve) => setTimeout(resolve, ms));
}

scrap();

What this script do is collecting all urls to artists, and then opening one after another with 300ms delay (you can tweak this in sleep() function).
The try block is there because not every entry has a href (idk, sometimes it just throws typerror: null).
No killswitch tho, you can reload the page instead

Image

<!-- gh-comment-id:3244708378 --> @Bielecki commented on GitHub (Sep 2, 2025): For anyone who may see this in the future - it seems like Koel is downloading arts, but only when you open the artist at least once. I wrote simple js script that you can enter in the web developer console: - at the beginning scroll artists page to the very bottom to load all urls - open dev console (F12) and enter following snippet to the console: ```javascript var b = document.getElementsByClassName("name") async function scrap() { for(var i = 0; i < b.length; i++){ try { window.location.href = b[i].firstElementChild.href; await sleep(300); } catch(Error) { continue; } } } async function sleep(ms) { await new Promise((resolve) => setTimeout(resolve, ms)); } scrap(); ``` What this script do is collecting all urls to artists, and then opening one after another with 300ms delay (you can tweak this in `sleep()` function). The `try` block is there because not every entry has a href (idk, sometimes it just throws typerror: null). No killswitch tho, you can reload the page instead ![Image](https://github.com/user-attachments/assets/e472311e-3b55-4db5-a527-966c99ffab6a)
Author
Owner

@phanan commented on GitHub (Sep 2, 2025):

@Bielecki Nice trick :)

<!-- gh-comment-id:3244810649 --> @phanan commented on GitHub (Sep 2, 2025): @Bielecki Nice trick :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#951
No description provided.