MusicPlayerDaemon / mpc

Command-line client for MPD
GNU General Public License v2.0
191 stars 36 forks source link

Add new options for the 'mpc status' command #95

Closed ericyape closed 1 year ago

ericyape commented 1 year ago

Hi,

I'd like to share new options I have added to the 'mpc status' command:

1/ mpc status '%state%' now returns 'stopped' if the MPD server is stopped

2/ mpc status '%kbitrate% %audioformat% %audiochannels% %audiobits% %audiosamplerate%' now returns full details on the audio streams (or 'n/a' if not available)

Thanks in advance for considering these (small) contributions.

Eric

ericyape commented 1 year ago

Hi Max, many thanks for the comments. I have tried to take into account all of them in the proposed commits. Eric PS : also change "audiobits" option to "bits" to stick to MPD documentation.