]> kaliko git repositories - python-musicpd.git/commitdiff
Add protocol commands
authorKaliko Jack <kaliko@azylum.org>
Sun, 23 Mar 2025 11:42:54 +0000 (12:42 +0100)
committerKaliko Jack <kaliko@azylum.org>
Sun, 23 Mar 2025 12:04:37 +0000 (13:04 +0100)
CHANGES.txt
musicpd.py

index c2da465887d3a4ae62f3010f264fe510d0017725..a082fa49a238337ad13c8fdbf66c5bc2e3c81558 100644 (file)
@@ -5,6 +5,7 @@ Changes in 0.9.2
 ----------------
 
  * Add missing build-backend in pyproject.toml
+ * Add protocol commands
 
 Changes in 0.9.1
 ----------------
index 2e82d4a187924a387463506ec4258497faaea4b4..64c57d017cb21db9e155c2124e2cceb5ca7aa530 100644 (file)
@@ -293,6 +293,12 @@ class MPDClient:
             "tagtypes enable":    self._fetch_nothing,
             "tagtypes clear":     self._fetch_nothing,
             "tagtypes all":       self._fetch_nothing,
+            "protocol":           self._fetch_list,
+            "protocol disable":   self._fetch_nothing,
+            "protocol enable":    self._fetch_nothing,
+            "protocol clear":     self._fetch_nothing,
+            "protocol all":       self._fetch_nothing,
+            "protocol available": self._fetch_list,
             # Partition Commands # partition-commands
             "partition":          self._fetch_nothing,
             "listpartitions":     self._fetch_list,