]> kaliko git repositories - python-musicpd.git/blobdiff - musicpd.py
Adds support for partition commands
[python-musicpd.git] / musicpd.py
index 89d38e4d5c5d6c77e36d18b8f066c6300cb55f43..192f6f342c78a7bd349d2ad17aa8653ac853d2ef 100644 (file)
@@ -112,7 +112,7 @@ class MPDClient:
 
     Cf. :py:obj:`musicpd.MPDClient.connect` for details.
 
-    >>> from os inport environ
+    >>> from os import environ
     >>> environ['MPD_HOST'] = 'pass@mpdhost'
     >>> cli = musicpd.MPDClient()
     >>> cli.pwd == environ['MPD_HOST'].split('@')[0]
@@ -220,6 +220,10 @@ class MPDClient:
             "kill":               None,
             "password":           self._fetch_nothing,
             "ping":               self._fetch_nothing,
+            # Partition Commands
+            "partition":          self._fetch_nothing,
+            "listpartitions":     self._fetch_list,
+            "newpartition":       self._fetch_nothing,
             # Audio Output Commands
             "disableoutput":      self._fetch_nothing,
             "enableoutput":       self._fetch_nothing,