-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Hi!
While experimenting with album art URLs returned by go-librespot, I noticed that the API currently retrieves the 300×300 version of Spotify images. However, Spotify also provides a higher resolution version (640×640) using the exact same hash.
What I found
Spotify image URLs follow a predictable pattern.
The size variant seems to depend on a specific segment inside the URL:
00001e02→ 300×3000000b273→ 640×640
By replacing the size segment returned by go-librespot (1e02) with b273, the image is requested in its higher-resolution form.
Examples
300×300 (current go-librespot output):
- https://i.scdn.co/image/ab67616d00001e02f238784d0bdf3e47a9dc7f55
- https://i.scdn.co/image/ab67616d00001e02c44d4ddea59e4496ab914a3a
- https://i.scdn.co/image/ab67616d00001e0241708165385c6f253ea5cacc
640×640 (simply replacing 1e02 with b273):
- https://i.scdn.co/image/ab67616d0000b273f238784d0bdf3e47a9dc7f55
- https://i.scdn.co/image/ab67616d0000b273c44d4ddea59e4496ab914a3a
- https://i.scdn.co/image/ab67616d0000b27341708165385c6f253ea5cacc
Would it be possible to:
- either automatically request the 640×640 variant,
- or expose an option to choose the desired album art size (e.g.
--image-size=max) ?
I'd be happy to test or help with implementation if needed.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request