From 6364ca3c78458a1052c7694519a8b948718fa922 Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Sun, 25 Aug 2024 15:37:34 +0200 Subject: [PATCH] Add stickernames command (closes #19) --- 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 54035c1..381d8db 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,7 @@ python-musicpd Changes List Changes in 0.9.1 ---------------- + * Add stickernames command * Add searchcount command * Improved documentation, add supported commands rtype diff --git a/doc/source/_commands.rst b/doc/source/_commands.rst index 9a85b86..432403b 100644 --- a/doc/source/_commands.rst +++ b/doc/source/_commands.rst @@ -133,6 +133,7 @@ Protocol documentation: `Stickers None * **sticker list** -> list * **sticker find** -> list[dict] +* **stickernames** -> list Connection settings ^^^^^^^^^^^^^^^^^^^ diff --git a/musicpd.py b/musicpd.py index 116f5cc..5dc9a14 100644 --- a/musicpd.py +++ b/musicpd.py @@ -280,6 +280,7 @@ class MPDClient: "sticker delete": self._fetch_nothing, "sticker list": self._fetch_list, "sticker find": self._fetch_songs, + "stickernames": self._fetch_list, # Connection settings # connection-settings "close": None, "kill": None, -- 2.39.5