mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #103] feature suggestions/requests #41
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sewnie on GitHub (Jan 9, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/103
1. download the current playing song's album cover into a file or into a cache for another script to use; my usecase for this is to display the album cover with an image viewer, as i missed this feature from playing music withmpv.2. display the album cover as braille; my usecase for this is with st boxdraw, as it can render braille characters as block. (might be replaced by sixel)viuer backend request, not spotify-player@sewnie commented on GitHub (Jan 9, 2023):
2 - https://github.com/librespot-org/librespot/wiki/Events
@sewnie commented on GitHub (Jan 9, 2023):
this can fulfill feature request 1!
@sewnie commented on GitHub (Mar 19, 2023):
a workaround to this would be to wait for a new file in the album cover cache directory i guess?
@sewnie commented on GitHub (Sep 7, 2023):
I found a workaround to the slow cli commands, which is to use the new hooks feature to output the tracks name to a file in ~/.cache, and have a seperate program read it.
I'm still unsure why spotify-player uses a network socket; it should be using a FIFO as its much faster than performing a network request.
@aome510 commented on GitHub (Sep 7, 2023):
Not sure how FIFO can be implemented as a way for CLI to communicate with another running client. Do you mind to elaborate?
@aome510 commented on GitHub (Sep 7, 2023):
socket should be really fast. The slowness you see should mostly come from network request to get Spotify data.
@sewnie commented on GitHub (Sep 7, 2023):
You could make a FIFO at /tmp, have a program write a command to it (such as 'get playback'), and that program will read from the FIFO after writing, in which case spotify_player will get that command, and write to the FIFO, which the program will retrieve.
Wait what? Why is this done? Shouldn't spotify_player store the current playing song? Why is this required for retrieving data that is already available?
@aome510 commented on GitHub (Sep 7, 2023):
Yes, playback, specifically, can be parsed from the application's state so don't really need to make an API call. Getting playback through an API call was implemented for the first iteration because it's simpler and similar to the way the client handles other
getcommands. Please create an issue with description + observed runtime forget playbackso that people can track it if you wantget playbackto be faster.If client and server both write to the same file, how does one differentiate between the other? Do you mean client and server have different FIFO file, server writes to
/tmp/command, and client writes to/tmp/command_result?@sewnie commented on GitHub (Sep 7, 2023):
Forget the FIFO, i'd rather have the 'retrieve data remotely' problem gone, making a new issue