Mpd extensions: Difference between revisions
From wikinotes
(Created page with "= python = <blockquote> <source lang="bash"> sudo pip install python-musicpd </source> <source lang="python"> import musicpd c = musicpd.MPDClient() c.connect('localhost', 66...") |
No edit summary |
||
Line 1: | Line 1: | ||
= Writing Extensions = | |||
<blockquote> | |||
= python = | = python = | ||
<blockquote> | <blockquote> | ||
Line 21: | Line 23: | ||
</source> | </source> | ||
</blockquote><!-- netcat --> | </blockquote><!-- netcat --> | ||
</blockquote><!-- Writing Extensions --> | |||
= Extensions = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| shuffle-playlist-album-order || https://github.com/f0rki/mpd-album-shuffle | |||
|- | |||
|} | |||
</blockquote><!-- Extensions --> |
Latest revision as of 18:09, 6 February 2022
Writing Extensions
python
sudo pip install python-musicpdimport 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