mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-27 00:25:53 +03:00
[GH-ISSUE #894] Commandline '-p' works differently than 'p' key in UI #383
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#383
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 @PoKnow on GitHub (Oct 1, 2021).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/894
"spt playback -p" does not go back to back to the beginning of the song. Instead it tires to go back to the previous song (acting like "-pp")
UI 'p' works as expected.
@aromeronavia commented on GitHub (Nov 29, 2021):
This happens because the general TUI uses a different code than the CLI.
The TUI uses this handler
And the CLI communicates directly with the Spotify Library to straight go to the previous track (notice there's no IF for the three seconds)
What we would have to do is to fetch first the current song progress in the CLI process, and then do the same validation to check if three seconds have passed or not. That can be achieved by using
current_playingmethod from RSpotify, get the song timestamp and do the same validation. Does that make sense? @Rigellute