]> kaliko git repositories - python-musicpd.git/blobdiff - mpd.py
adding idle and noidle commands
[python-musicpd.git] / mpd.py
diff --git a/mpd.py b/mpd.py
index d7aaf5d46306831895564a53a9f43f2b4361ebdb..ade41a63f168262a7a382b8def45ebc41c7fd373 100644 (file)
--- a/mpd.py
+++ b/mpd.py
@@ -54,6 +54,8 @@ class MPDClient(object):
             # Status Commands
             "clearerror":       self._getnone,
             "currentsong":      self._getobject,
+            "idle":             self._getlist,
+            "noidle":           None,
             "status":           self._getobject,
             "stats":            self._getobject,
             # Playback Option Commands
@@ -92,6 +94,7 @@ class MPDClient(object):
             # Stored Playlist Commands
             "listplaylist":     self._getlist,
             "listplaylistinfo": self._getsongs,
+            "listplaylists":    self._getplaylists,
             "load":             self._getnone,
             "playlistadd":      self._getnone,
             "playlistclear":    self._getnone,
@@ -262,6 +265,9 @@ class MPDClient(object):
     def _getsongs(self):
         return self._getobjects(["file"])
 
+    def _getplaylists(self):
+        return self._getobjects(["playlist"])
+
     def _getdatabase(self):
         return self._getobjects(["file", "directory", "playlist"])