]> kaliko git repositories - python-musicpd.git/commitdiff
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 85a85891248ce81a6026ecd4b1916e85f31b98d4..cd6e1832b201ace54e3f6bec19aa1829866966d6 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 ade41a63f168262a7a382b8def45ebc41c7fd373..fdba8ba3af0e0f5239f6ee024da774632879b051 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,