mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 16:15:55 +03:00
[GH-ISSUE #430] Metadata pipe/fifo #179
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#179
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 @bresilla on GitHub (May 3, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/430
Would be amazing if spotify-tui could pipe to a temporary file or UNIX fifo the metadata for the current song. Title, Author, and especially length and progress every second. The spotidy-tui interface already has all those information. Just to dump them in a file.
This way, another script can read that file. Like notifications demons, bars and so on...
What I am trying to do is to make a polybar module where i can put Title, Author and a nice progress bar that updated every second. Like this in the corner left:
If i have the time down the line this month, i'll try to do myself and send a PR. I assume, all there is need to be done is to add an argument parameter for the file to dump the data, and some small small logic to d that.
Anyway. Cheers.
And keep the amazing work you're doing.
@naviabbot commented on GitHub (May 4, 2020):
I think this can be solved by using
playerctl metadataorsp current. If you're using Spotify-tui, then more than likely, you're using spotifyd, which is MPRIS-Aware@bresilla commented on GitHub (May 4, 2020):
Yeah i am using spotifyd. The thing is that, spotifyd is always lagging to sent the information. And
playerctl -p spotifyd metadatanever actually gives real-time info. But maybe that's my laptop's fault. I just though that you already connect directly to Spotify server to get those data, then maybe dump in a temp file.Anyways. Thanks for all and I'll close this issue.
@icep0ps commented on GitHub (Jul 24, 2024):
Just want to add this here, for those who are trying to get metadata from playerctl, make sure you build spotifyd with
dbus_mprisas part of the features. You can run this command to do thatcargo build --release --no-default-features --features pulseaudio_backend,dbus_mpris