[GH-ISSUE #1020] Using spt from command line #452

Open
opened 2026-02-28 14:49:15 +03:00 by kerem · 1 comment
Owner

Originally created by @kdowolski on GitHub (Sep 8, 2022).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1020

I would like to integrate spt with bar so I need a way to get current song and playback status. I found I could use spt pb but have two problems with that.

  1. Dunno how to get status here, like length of song and actuall progress. There is "%s" in format, but shows just arrow for me.
  2. It's very slow, I installed it with cargo and running any spt commands last about 3 seconds. It's way too much.

Any advices?

Originally created by @kdowolski on GitHub (Sep 8, 2022). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1020 I would like to integrate spt with bar so I need a way to get current song and playback status. I found I could use `spt pb` but have two problems with that. 1) Dunno how to get status here, like length of song and actuall progress. There is "%s" in format, but shows just arrow for me. 2) It's very slow, I installed it with `cargo` and running any `spt` commands last about 3 seconds. It's way too much. Any advices?
Author
Owner

@OrangeFran commented on GitHub (Sep 23, 2022):

Using '%r' actually displays the song progress. I probably forgot to add it to the help menu. Regarding the speed of the application, that's definitely something that could be looked at.

<!-- gh-comment-id:1256291550 --> @OrangeFran commented on GitHub (Sep 23, 2022): Using '%r' actually displays the song progress. I probably forgot to add it to the help menu. Regarding the speed of the application, that's definitely something that could be looked at.
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-tui#452
No description provided.