]> kaliko git repositories - python-musicpdaio.git/commitdiff
Add playlistlength command
authorkaliko <kaliko@azylum.org>
Sun, 1 Sep 2024 17:29:23 +0000 (19:29 +0200)
committerkaliko <kaliko@azylum.org>
Sun, 1 Sep 2024 17:29:23 +0000 (19:29 +0200)
doc/source/commands.rst
mpdaio/client.py

index 2bf131d76fc47eb893666742dda68a3f1ca21239..0de15a5364e16fc6c07d1f3fde6439d799753dd2 100644 (file)
@@ -69,6 +69,7 @@ Stored Playlist Commands
 * playlistadd
 * playlistclear
 * playlistdelete
+* playlistlength
 * playlistmove
 * rename
 * rm
index 651cfb85fdcb0ae8eb05ac60daad3e36312cfd68..9b53d6eeb38a905e758e077eea89dffe2700c354 100644 (file)
@@ -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,