mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #294] Print Artist - Song after using CLI to control playback #154
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#154
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 @catgoose on GitHub (Nov 16, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/294
Related to #279
When using
spotify_player playback next|previousI would like it ifspotify_playerwould output the song that was switched to. This should only print if there is no activespotify_playerinstance.For example:
@aome510 commented on GitHub (Nov 21, 2023):
This is difficult to do because it takes time for Spotify API to show up the changed playback. In other words, calling
current_playbackAPI afternextAPI can give you the previous track. I would suggest you use a separate command (e.gget key playbackto get the playback instead.@ed9w2in6 commented on GitHub (Nov 29, 2023):
@catgoose This is how you can do it with
get key playback:For future reference:
spotify-tuiimplemented this here, I believe it does not avoid the issue @aome510 mentioned as there is a short lag (few ms) when using this:https://github.com/Rigellute/spotify-tui/blob/master/src/cli/cli_app.rs#L393
It also shows if current playback is liked or not using
current_user_saved_tracks_contains, in which we used for add to library function:github.com/aome510/spotify-player@e25c701f21/spotify_player/src/client/mod.rs (L959)@sewnie commented on GitHub (Dec 3, 2023):
or:
@catgoose commented on GitHub (Dec 6, 2023):
Thanks this works for me. I can do:
enable_image_cacheconfig option #652enable_image_cacheconfig option #1589