[GH-ISSUE #430] Metadata pipe/fifo #179

Closed
opened 2026-02-28 14:47:34 +03:00 by kerem · 3 comments
Owner

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:

image

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.

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](https://github.com/polybar/polybar) module where i can put Title, Author and a nice progress bar that updated every second. Like this in the corner left: ![image](https://user-images.githubusercontent.com/10802141/80914300-0be76880-8d4b-11ea-8578-11483a25b94d.png) 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.
kerem closed this issue 2026-02-28 14:47:34 +03:00
Author
Owner

@naviabbot commented on GitHub (May 4, 2020):

I think this can be solved by using playerctl metadata or sp current. If you're using Spotify-tui, then more than likely, you're using spotifyd, which is MPRIS-Aware

<!-- gh-comment-id:623227795 --> @naviabbot commented on GitHub (May 4, 2020): I think this can be solved by using `playerctl metadata` or `sp current`. If you're using Spotify-tui, then more than likely, you're using spotifyd, which is MPRIS-Aware
Author
Owner

@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 metadata never 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.

<!-- gh-comment-id:623409564 --> @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 metadata` never 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.
Author
Owner

@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_mpris as part of the features. You can run this command to do that

cargo build --release --no-default-features --features pulseaudio_backend,dbus_mpris

<!-- gh-comment-id:2248885273 --> @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_mpris` as part of the features. You can run this command to do that `cargo build --release --no-default-features --features pulseaudio_backend,dbus_mpris`
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#179
No description provided.