-
-
Notifications
You must be signed in to change notification settings - Fork 91
Description
I wasn't able to find any way to get a text value of what's currently playing, for example in a form of ARTIST - SONGNAME.
This would be very useful in situations where user needs to use that info somewhere else, like in scripts, desktop UI panels, streaming software. Application of such a feature can vary greatly. Please let me know if such a feature actually exists and I just missed it, but all I've managed to find were searching capabilities with JSON output.
The way I see it, this could be done in a "formatting string" way, so the user could choose which information to print out and in which order.
A few examples:
[%state%] %artist% - %title% (%m:%s)(where state would beplaying,pausedorstopped)Now playing: %artist% | %album% | %title%
The syntax above is just an example, if in doubt, maybe it would be a good idea to refer to an already existing formatting syntax in other players, something like foobar2000's "title formatting syntax reference".
But if that's too much work, even the simplest ARTIST - SONGNAME would suffice for me, personally. Preferably without JSON, simply via stdout. Or maybe more info can be "hardcoded", as it can be formatted later by the user with other CLI utilities/shell functions (but in that case maybe add separators to make external formatting simpler)