]> kaliko git repositories - python-musicpd.git/commitdiff
Add config command
authorKaliko Jack <kaliko@azylum.org>
Mon, 17 Nov 2014 14:40:28 +0000 (15:40 +0100)
committerKaliko Jack <kaliko@azylum.org>
Mon, 17 Nov 2014 14:40:28 +0000 (15:40 +0100)
CHANGES.txt
doc/commands.txt
musicpd.py

index dd2bada2e9e6a32f32611ab7be10838210f543d8..0f1e6475d1597848d935b3d924a2985799e79a8e 100644 (file)
@@ -10,6 +10,7 @@ Changes in 0.4.2 UNRELEASED
 * Add rangeid command
 * Add tag editing commands (addtagid and cleartagid)
 * Add missing priority commands (prio and prioid)
+* Add config command
 
 Changes in 0.4.1
 ----------------
index 40d8941cba3015170c263a5784b540a40ba94833..178d883cf8cb7d59457f0c777095f92a5552d14a 100644 (file)
@@ -84,10 +84,10 @@ rescan             [<str>]                                  -> fetch_item
 
 == Mounts and neighbors ==
 
-mount              <str> <str>             -> self._fetch_nothing
-unmount            <str>                   -> self._fetch_nothing
-listmounts                                 -> self._fetch_mounts
-listneighbors                              -> self._fetch_neighbors
+mount              <str> <str>     -> self._fetch_nothing
+unmount            <str>           -> self._fetch_nothing
+listmounts                         -> self._fetch_mounts
+listneighbors                      -> self._fetch_neighbors
 
 == Sticker Commands
 sticker   get      <str> <str> <str>       -> fetch_item
@@ -97,20 +97,21 @@ sticker   list     <str> <str>             -> fetch_list
 sticker   find     <str> <str> <str>       -> fetch_songs
 
 == Connection Commands
-close                                      -> None
-kill                                       -> None
-password           <str>                   -> fetch_nothing
-ping                                       -> fetch_nothing
+close                       -> None
+kill                        -> None
+password           <str>    -> fetch_nothing
+ping                        -> fetch_nothing
 
 == Audio Output Commands
-disableoutput      <int>                   -> fetch_nothing
-enableoutput       <int>                   -> fetch_nothing
-toggleoutput       <int>                   -> fetch_nothing
-outputs                                    -> fetch_outputs
+disableoutput      <int>    -> fetch_nothing
+enableoutput       <int>    -> fetch_nothing
+toggleoutput       <int>    -> fetch_nothing
+outputs                     -> fetch_outputs
 
 == Reflection Commands
-commands                                   -> fetch_list
-notcommands                                -> fetch_list
-tagtypes                                   -> fetch_list
-urlhandlers                                -> fetch_list
-decoders                                   -> fetch_plugins
+config           -> fetch_object
+commands         -> fetch_list
+notcommands      -> fetch_list
+tagtypes         -> fetch_list
+urlhandlers      -> fetch_list
+decoders         -> fetch_plugins
index 4ead39a86ca9de7e7e98dcded1b24c222e6ae093..5b4c3888ebae5f2343135819abd92f762634ac53 100644 (file)
@@ -188,6 +188,7 @@ class MPDClient:
             "toggleoutput":       self._fetch_nothing,
             "outputs":            self._fetch_outputs,
             # Reflection Commands
+            "config":             self._fetch_object,
             "commands":           self._fetch_list,
             "notcommands":        self._fetch_list,
             "tagtypes":           self._fetch_list,