~hristoast/mpdinfo

MPD server data over HTTP
Send nothing when a connection can't be made
Don't turn None into a string
Do this with one call

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~hristoast/mpdinfo
read/write
git@git.sr.ht:~hristoast/mpdinfo

You can also use your local clone with git send-email.

#mpd-info

Serve up information about an MPD server in json format.

It's designed to serve up a few data points from a running MPD server out of a small json endpoint:

  • What's currently playing, represented by a preformatted string that falls back to the file name if no tags are available.
  • Information about the track length, and how much time is reamaining.