From: kaliko Date: Sun, 1 Sep 2024 17:29:23 +0000 (+0200) Subject: Add playlistlength command X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=c1b911330d29447b895f9e7c295dca0e188181e2;p=python-musicpdaio.git Add playlistlength command --- 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,