Mpd extensions

From wikinotes
Revision as of 18:09, 6 February 2022 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Writing Extensions

python

sudo pip install python-musicpd
import musicpd
c = musicpd.MPDClient()
c.connect('localhost', 6600)
c.find('genre', 'Jazz')
c.close()

netcat

echo "currentsong" | nc 127.0.0.1 6600
echo "find genre Indie" | nc 127.0.0.1 6600 | grep -i "^Artist" | uniq -i

Extensions

shuffle-playlist-album-order https://github.com/f0rki/mpd-album-shuffle