From: Kaliko Jack Date: Sun, 25 Aug 2024 10:37:08 +0000 (+0200) Subject: Add searchcount command (closes #18) X-Git-Tag: v0.9.1~2 X-Git-Url: http://git.kaliko.me/?a=commitdiff_plain;h=aeaa15ea394b637f89475a64dd52d6642bb8e49c;p=python-musicpd.git Add searchcount command (closes #18) --- diff --git a/CHANGES.txt b/CHANGES.txt index 449772c..54035c1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/doc/source/_commands.rst b/doc/source/_commands.rst index 18a7343..9a85b86 100644 --- a/doc/source/_commands.rst +++ b/doc/source/_commands.rst @@ -109,6 +109,7 @@ Protocol documentation: `The music database list[dict] * **searchadd** -> None * **searchaddpl** -> None +* **searchcount** -> dict * **update** -> str * **rescan** -> str diff --git a/musicpd.py b/musicpd.py index 96f8c86..116f5cc 100644 --- a/musicpd.py +++ b/musicpd.py @@ -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