[GH-ISSUE #165] get newest album cover image #1020

Closed
opened 2026-03-14 13:01:33 +03:00 by kerem · 1 comment
Owner

Originally created by @sewnie on GitHub (Mar 23, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/165

Is your feature request related to a problem? Please describe.
as i cant see the album cover in the terminal (on x11, sixel on st sucks), so id like to randomly see it with my image viewer.

Describe the solution you'd like

  1. a symlink in the image cache directory that leads to the current playing (or last) song's album cover image. for example: ./current.jpg -> ./The Tenth Sub Level Of Suicide-Leviathan-cover.jpg
  2. above, but the file is copied.
  3. alternatives below

Describe alternatives you've considered
using the playback command from #159 to parse the current playing song's album ({album}-{artist}-cover.jpg} to get the image

alternatively:

~ $ playerctl metadata mpris:artUrl
https://i.scdn.co/image/ab67616d0000b273ec74ef216bbef83cda4d0f72
~ $ 

however i'd rather not use playerctl, though it can solve the issue i had with it being super slow, and not needing to request spotify api.

Additional context
i oversaw this issue by getting the 'latest' image, but as its cached and not 're-downloaded', it's contradicted.

additionally, it would be nice if the keybindings array could support external commands, so that i can open the latest album cover's image straight from spotify-player.

Originally created by @sewnie on GitHub (Mar 23, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/165 **Is your feature request related to a problem? Please describe.** as i cant see the album cover in the terminal (on x11, sixel on st *sucks*), so id like to randomly see it with my image viewer. **Describe the solution you'd like** 1. a symlink in the `image` cache directory that leads to the current playing (or last) song's album cover image. for example: `./current.jpg -> ./The Tenth Sub Level Of Suicide-Leviathan-cover.jpg` 2. above, but the file is copied. 3. alternatives below **Describe alternatives you've considered** using the `playback` command from #159 to parse the current playing song's album (`{album}-{artist}-cover.jpg`} to get the image alternatively: ``` ~ $ playerctl metadata mpris:artUrl https://i.scdn.co/image/ab67616d0000b273ec74ef216bbef83cda4d0f72 ~ $ ``` however i'd rather not use `playerctl`, though it can solve the issue i had with it being super slow, and not needing to request spotify api. **Additional context** i oversaw this issue by getting the 'latest' image, but as its cached and not 're-downloaded', it's contradicted. additionally, it would be nice if the keybindings array could support external commands, so that i can open the latest album cover's image straight from spotify-player.
kerem 2026-03-14 13:01:33 +03:00
Author
Owner

@aome510 commented on GitHub (Apr 26, 2023):

with #159, this should be possible with the following command (needs jq command):

spotify_player get key playback | \ 
jq '.item.album.name + "-" + ([.item.album.artists[].name] | join(", ")) +  "-cover.jpq"'
<!-- gh-comment-id:1523878249 --> @aome510 commented on GitHub (Apr 26, 2023): with #159, this should be possible with the following command (needs `jq` command): ```shell spotify_player get key playback | \ jq '.item.album.name + "-" + ([.item.album.artists[].name] | join(", ")) + "-cover.jpq"' ```
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/spotify-player#1020
No description provided.