adding consume and single commands
authorJ. Alexander Treuman <jat@spatialrift.net>
Mon, 1 Jun 2009 22:33:49 +0000 (18:33 -0400)
committerJ. Alexander Treuman <jat@spatialrift.net>
Mon, 1 Jun 2009 22:33:49 +0000 (18:33 -0400)
doc/commands.txt
mpd.py

index 85a8589..cd6e183 100644 (file)
@@ -7,10 +7,12 @@ status                             -> getobject
 stats                              -> getobject
 
 == Playback Option Commands
+consume          <bool>            -> getnone
 crossfade        <int>             -> getnone
 random           <bool>            -> getnone
 repeat           <bool>            -> getnone
 setvol           <int>             -> getnone
+single           <bool>            -> getnone
 volume           <int>             -> getnone
 
 == Playback Control Commands
diff --git a/mpd.py b/mpd.py
index ade41a6..fdba8ba 100644 (file)
--- a/mpd.py
+++ b/mpd.py
@@ -59,10 +59,12 @@ class MPDClient(object):
             "status":           self._getobject,
             "stats":            self._getobject,
             # Playback Option Commands
+            "consume":          self._getnone,
             "crossfade":        self._getnone,
             "random":           self._getnone,
             "repeat":           self._getnone,
             "setvol":           self._getnone,
+            "single":           self._getnone,
             "volume":           self._getnone,
             # Playback Control Commands
             "next":             self._getnone,