mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
[GH-ISSUE #791] Wrong title in command line when changing tracks #322
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#322
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 @nacht-falter on GitHub (Apr 17, 2021).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/791
When I change songs via the command line without UI, e.g. like this
spt p --name monolake --artistthe new track is played correctly, but sometimes the title of the track that has been playing before is printed to the terminal. It's not consistent though as this terminal output shows:(I am running spotify-tui 0.23.0 on macOS)
@OrangeFran commented on GitHub (Apr 18, 2021):
This also caught my attention but I never bothered to fix it, sorry :/
I think spotify just needs some time to process and update the playback when we send a
change songrequest. I tried waiting half a second withstd::thread::sleepbefore querying the status and it seems that it displays the playback status consistently now, though it's probably not a good solution. Let me know if you find something better, else I'll open a pr.Edit: https://github.com/Rigellute/spotify-tui/compare/master...OrangeFran:fix_song_status
@nacht-falter commented on GitHub (Apr 19, 2021):
Looks good. Thx!