]> kaliko git repositories - python-musicpd.git/commitdiff
Add playlistlength command (closes #17) master v0.9.1
authorKaliko Jack <kaliko@azylum.org>
Sun, 25 Aug 2024 14:06:55 +0000 (16:06 +0200)
committerKaliko Jack <kaliko@azylum.org>
Sun, 25 Aug 2024 14:06:55 +0000 (16:06 +0200)
CHANGES.txt
doc/source/_commands.rst
musicpd.py

index 381d8dbdab58a5cedea91e8cae4a84866d8dfeeb..65bf84112e34e00f0a0d2eb264830fcfe352a92c 100644 (file)
@@ -4,6 +4,7 @@ python-musicpd Changes List
 Changes in 0.9.1
 ----------------
 
+ * Add playlistlength command
  * Add stickernames command
  * Add searchcount command
  * Improved documentation, add supported commands rtype
index 432403b83c452407c15354d4ef5fe128cd84e668..b145a92eab5fc1d0b1dd406ec98d5a5e1ff84b8e 100644 (file)
@@ -84,6 +84,7 @@ Protocol documentation: `Stored playlists <https://mpd.readthedocs.io/en/latest/
 * **playlistadd** -> None
 * **playlistclear** -> None
 * **playlistdelete** -> None
+* **playlistlength** -> dict
 * **playlistmove** -> None
 * **rename** -> None
 * **rm** -> None
index 5dc9a14801c092b370ccb8917d1b0365d71287db..22d8d2bb521ed9e63a52739a1cc1027400d315c2 100644 (file)
@@ -246,6 +246,7 @@ class MPDClient:
             "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,