mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-16 02:45:54 -07:00
feat: refetch missing images on startup (#160)
* artist image refetching * album image refetching * remove unused var
This commit is contained in:
parent
5e294b839c
commit
1a8099e902
15 changed files with 271 additions and 44 deletions
|
|
@ -110,6 +110,9 @@ func (c *DeezerClient) getEntity(ctx context.Context, endpoint string, result an
|
|||
return nil
|
||||
}
|
||||
|
||||
// Deezer behavior is that it serves a default image when it can't find one for an artist, so
|
||||
// this function will just download the default image thinking that it is an actual artist image.
|
||||
// I don't know how to fix this yet.
|
||||
func (c *DeezerClient) GetArtistImages(ctx context.Context, aliases []string) (string, error) {
|
||||
l := logger.FromContext(ctx)
|
||||
resp := new(DeezerArtistResponse)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue