From c1b911330d29447b895f9e7c295dca0e188181e2 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 1 Sep 2024 19:29:23 +0200 Subject: [PATCH] Add playlistlength command --- doc/source/commands.rst | 1 + mpdaio/client.py | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/source/commands.rst b/doc/source/commands.rst index 2bf131d..0de15a5 100644 --- a/doc/source/commands.rst +++ b/doc/source/commands.rst @@ -69,6 +69,7 @@ Stored Playlist Commands * playlistadd * playlistclear * playlistdelete +* playlistlength * playlistmove * rename * rm diff --git a/mpdaio/client.py b/mpdaio/client.py index 651cfb8..9b53d6e 100644 --- a/mpdaio/client.py +++ b/mpdaio/client.py @@ -197,6 +197,7 @@ class CmdHandler: "playlistadd": self._fetch_nothing, "playlistclear": self._fetch_nothing, "playlistdelete": self._fetch_nothing, + "playlistlength": self._fetch_object, "playlistmove": self._fetch_nothing, "rename": self._fetch_nothing, "rm": self._fetch_nothing, -- 2.39.5