]> kaliko git repositories - python-musicpd.git/commitdiff
Add searchcount command (closes #18)
authorKaliko Jack <kaliko@azylum.org>
Sun, 25 Aug 2024 10:37:08 +0000 (12:37 +0200)
committerKaliko Jack <kaliko@azylum.org>
Sun, 25 Aug 2024 10:37:08 +0000 (12:37 +0200)
CHANGES.txt
doc/source/_commands.rst
musicpd.py

index 449772cabd0f1ebf624167ad323e8be5ab378bfa..54035c14769171af08be8f7b113de65e6bead639 100644 (file)
@@ -4,6 +4,7 @@ python-musicpd Changes List
 Changes in 0.9.1
 ----------------
 
+ * Add searchcount command
  * Improved documentation, add supported commands rtype
 
 Changes in 0.9.0
index 18a73430ce04dac1907ade68b09ffb1d94d50222..9a85b8693e3732a60d92e7e488f2452bdacc4b75 100644 (file)
@@ -109,6 +109,7 @@ Protocol documentation: `The music database <https://mpd.readthedocs.io/en/lates
 * **search** -> list[dict]
 * **searchadd** -> None
 * **searchaddpl** -> None
+* **searchcount** -> dict
 * **update** -> str
 * **rescan** -> str
 
index 96f8c866a38deff1be15304ea807cdd614438067..116f5cc9a3eae6444e0feac8ac2b4793bedb1a38 100644 (file)
@@ -266,6 +266,7 @@ class MPDClient:
             "search":             self._fetch_songs,
             "searchadd":          self._fetch_nothing,
             "searchaddpl":        self._fetch_nothing,
+            "searchcount":        self._fetch_object,
             "update":             self._fetch_item,
             "rescan":             self._fetch_item,
             # Mounts and neighbors # mounts-and-neighbors