File: findadd.py

package info (click to toggle)
python-musicpd 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 484 kB
  • sloc: python: 792; makefile: 6
file content (8 lines) | stat: -rw-r--r-- 212 bytes parent folder | download
1
2
3
4
5
6
7
8
import musicpd

# Using a context manager
# (use env var if you need to override default host)
with musicpd.MPDClient() as client:
    client.clear()
    client.findadd("(artist == 'Monkey3')")
    client.play()