From: kaliko Date: Sun, 1 Sep 2024 17:21:25 +0000 (+0200) Subject: Add searchcount command X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=eee0d09b97ae774b3d357cfce8cee37d5c241a31;p=python-musicpdaio.git Add searchcount command --- diff --git a/doc/source/commands.rst b/doc/source/commands.rst index 3e29512..03d0b07 100644 --- a/doc/source/commands.rst +++ b/doc/source/commands.rst @@ -1,7 +1,6 @@ Status Commands ^^^^^^^^^^^^^^^ - * clearerror * currentsong * idle @@ -11,7 +10,6 @@ Status Commands Playback Option Commands ^^^^^^^^^^^^^^^^^^^^^^^^ - * consume * crossfade * mixrampdb @@ -27,7 +25,6 @@ Playback Option Commands Playback Control Commands ^^^^^^^^^^^^^^^^^^^^^^^^^ - * next * pause * play @@ -40,7 +37,6 @@ Playback Control Commands Queue Commands ^^^^^^^^^^^^^^ - * add * addid * clear @@ -66,7 +62,6 @@ Queue Commands Stored Playlist Commands ^^^^^^^^^^^^^^^^^^^^^^^^ - * listplaylist * listplaylistinfo * listplaylists @@ -81,7 +76,6 @@ Stored Playlist Commands Database Commands ^^^^^^^^^^^^^^^^^ - * albumart * count * getfingerprint @@ -97,12 +91,12 @@ Database Commands * search * searchadd * searchaddpl +* searchcount * update * rescan Mounts and neighbors ^^^^^^^^^^^^^^^^^^^^ - * mount * unmount * listmounts @@ -110,7 +104,6 @@ Mounts and neighbors Sticker Commands ^^^^^^^^^^^^^^^^ - * sticker get * sticker set * sticker delete @@ -119,7 +112,6 @@ Sticker Commands Connection Commands ^^^^^^^^^^^^^^^^^^^ - * close * kill * password @@ -133,7 +125,6 @@ Connection Commands Partition Commands ^^^^^^^^^^^^^^^^^^ - * partition * listpartitions * newpartition @@ -142,7 +133,6 @@ Partition Commands Audio Output Commands ^^^^^^^^^^^^^^^^^^^^^ - * disableoutput * enableoutput * toggleoutput @@ -151,7 +141,6 @@ Audio Output Commands Reflection Commands ^^^^^^^^^^^^^^^^^^^ - * config * commands * notcommands @@ -160,7 +149,6 @@ Reflection Commands Client to Client ^^^^^^^^^^^^^^^^ - * subscribe * unsubscribe * channels diff --git a/mpdaio/client.py b/mpdaio/client.py index 2b97162..2eeebc1 100644 --- a/mpdaio/client.py +++ b/mpdaio/client.py @@ -217,6 +217,7 @@ class CmdHandler: "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