]> kaliko git repositories - python-musicpd.git/commitdiff
Add getvol command (closes #9)
authorKaliko Jack <kaliko@azylum.org>
Fri, 5 Feb 2021 10:18:57 +0000 (11:18 +0100)
committerKaliko Jack <kaliko@azylum.org>
Fri, 5 Feb 2021 10:18:57 +0000 (11:18 +0100)
CHANGES.txt
doc/source/commands.rst
doc/source/commands.txt
musicpd.py

index e777f9e133e043589ac57580c443c845a155226a..e7e02c715518959c8965e5b07c7bb2a55257c0a3 100644 (file)
@@ -7,6 +7,7 @@ Changes in 0.6.0 UNRELEASED
 * Switch back to gztar (even though official python doc mention xztar, PEP 527
   considers only gztar and zip)
 * Add binarylimit command
+* Add getvol command
 
 
 Changes in 0.5.1
index 7f08135590e23ed540d5f9b7df8e4e35c3f86234..0d02402841bed366b59ecf1db829393ad9f1853a 100644 (file)
@@ -11,6 +11,6 @@ Get current available commands:
    print(' '.join([cmd for cmd in musicpd.MPDClient()._commands.keys()]))
 
 
-List, last updated for v0.5.0:
+List, last updated for v0.6.0:
 
 .. literalinclude:: commands.txt
index 77c49b65107f316f3730fe12a1cfe244bff3bd66..b9dc4a2b7af7e2c038ae08ff030218c84c9cf854 100644 (file)
@@ -14,6 +14,7 @@ mixrampdelay       <int>                   -> fetch_nothing
 random             <bool>                  -> fetch_nothing
 repeat             <bool>                  -> fetch_nothing
 setvol             <int>                   -> fetch_nothing
+getvol                                     -> fetch_object
 single             <bool>                  -> fetch_nothing
 replay_gain_mode   <str>                   -> fetch_nothing
 replay_gain_status                         -> fetch_item
index df2c923560c01bf5484d4aec78a59726fd960e0b..82a60854c85c7ba1c30a57952d2f698a184dc29a 100644 (file)
@@ -173,6 +173,7 @@ class MPDClient:
             "random":             self._fetch_nothing,
             "repeat":             self._fetch_nothing,
             "setvol":             self._fetch_nothing,
+            "getvol":             self._fetch_object,
             "single":             self._fetch_nothing,
             "replay_gain_mode":   self._fetch_nothing,
             "replay_gain_status": self._fetch_item,