So yeah, as the probably unnecessarily long title says, this is a CLI that displays the current playing lyrics, but instead of trying to go online and fetch a match it just uses the already there xesam:asText property in MPRIS.
Sadly a lot of popular players that implement the MPRIS2 standard still don’t implement that specific one, so it wont work with them. Even the one used in the showcase had to be modified, tho I am hopefully gonna upstream it soon.
I am very strict about AI usage, so for this project the only hint of AI that was used was for tab auto completion that is just used for boilerplate like, idk, implementing the Default trait for PlayerState (not including the actual tricky metadata_last_updated part). Safe to say it was only one notch above no AI at all.
So yeah, here you go give it a try and feel free to roast me, after all this is my first cli and cargo publish ;)


This metadata is only for media streams, not something that would be embedded as metadata in a file?
MPRIS is the spec that Linux desktops use to make players transfer metadata about the thing they are playing and its state.
For example: title, artists, cover art, position, playing/paused, etc…
It doesn’t specify where the metadata should come from, for example the
xesam:asTextcan be populated with lyrics from the metadata embedded in the song file itself, a companion.lrcfile or even fetched from lrclib by the player, as long as the player is the one doing the IO and populating it.