Skip to content

[Feature request] CLI command to print status/playback information #858

@ztx-lyghters

Description

@ztx-lyghters

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 be playing, paused or stopped)
  • 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions