Hi. I am suggesting -f, --format
to be updated with more metadata delimiters and/or to print a list of all information... or to have all information exposed in selective --query
for scripting purposes because there are some things in mpc status
that are not exposed in --format
.
Missing:
%state%
eg play, pause, stop
%volume%
volume percent number, eg 10
%repeat%
repeat boolean
%random%
repeat boolean
%single%
single boolean
%consume%
consume boolean
%shuffle%
shuffle boolean
%progress%
song percent number, eg 10
%length%
track length
- etc, etc, etc.
Other things that you might be able to print...
%time_total%
(seconds)
%time_elapsed%
(seconds)
%time_left%
(seconds)
%playlist_total%
%playlist_elapsed%
%playlist_left%
%duration%
(seconds)
%error%
error message?
%bitrate%
- etc, etc, etc.
If you want a comparsion, you can try...
-
moc
mocp --format
-- Selective metadata delimiters
mocp --info
-- Print (partial?) player status information
-
cmus
cmus-remote --query
: Print (partial?) player status information
-
deadbeef
deadbeef --nowplaying "%a - %t"
Print (partial?) status information (deprecated)
deadbeef --nowplaying-tf "%artist% - %title%"
uses a subset of FooBar2K
title formatting
To explain a bit more about --query
, this is simply borrowed from what I think is a best example from nvidia_smi --query-gpu=arg1, arg2, arg3
as it would allow mixing of song information and other information such as mpc stats
or version. This is basically a generic --format
that displays literally everything.
eg...
mpc --query version, song_artist, stat_artists, stat_albums, stat_songs, stat_play_time, stat_uptime, stat_db_updated, stat_db_play_time
... would return: `0.19.0, MaxKellermann, 1, 0, 1, 123456, 123456, ...`
Reason for making this issue. I want to obtain %status%
and did not see a way to do that with mpc
(other than ugly parsing the output of mpc status
) so I write up this possible feature/feature request issue. Thank you.