ray-kast/empress

Return player name in the now-playing subcommand

mradermaxlol opened this issue · 4 comments

As far as I can tell, empress now-playing returns just 4 json values, no more & no less (unless I'm missing something):
image

It would be nice to have the active player title returned as well, similar to playerctl metadata.

On a side note: is the "artist" field supposed to be an array?

At the moment, that's correct. The underlying D-Bus response I send is an untyped hash map so it should be pretty easy to send more data without a breaking protocol change.
image

Also: yeah! The MPRIS spec actually supports an artists array, but none of the MPRIS players I’ve tested support it 😔

image
Adding the player Identity property and bus to the JSON returned from now-playing.

Fix for this is pushed, I'll get a version rolled out with it once I'm done with the now-playing formatter.

This feature is now out in beta. I've pushed a build to crates.io for testing.