From aeaa15ea394b637f89475a64dd52d6642bb8e49c Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Sun, 25 Aug 2024 12:37:08 +0200 Subject: [PATCH] Add searchcount command (closes #18) --- CHANGES.txt | 1 + doc/source/_commands.rst | 1 + musicpd.py | 1 + 3 files changed, 3 insertions(+) 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 -- 2.39.5