[Pkg-mpd-commits] [python-mpd] 45/262: adding listplaylists command
Simon McVittie
smcv at debian.org
Sun May 22 18:16:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch upstream
in repository python-mpd.
commit c465a35a2b587e14f3f86be3d983d5b074ed375d
Author: J. Alexander Treuman <jat at spatialrift.net>
Date: Mon Jun 1 17:53:40 2009 -0400
adding listplaylists command
---
doc/commands.txt | 1 +
mpd.py | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/doc/commands.txt b/doc/commands.txt
index 68f6ed2..df8058a 100644
--- a/doc/commands.txt
+++ b/doc/commands.txt
@@ -43,6 +43,7 @@ swapid <int> <int> -> getnone
== Stored Playlist Commands
listplaylist <str> -> getlist
listplaylistinfo <str> -> getsongs
+listplaylists -> getplaylists
load <str> -> getnone
playlistadd <str> <str> -> getnone
playlistclear <str> -> getnone
diff --git a/mpd.py b/mpd.py
index d7aaf5d..3a5d867 100644
--- a/mpd.py
+++ b/mpd.py
@@ -92,6 +92,7 @@ class MPDClient(object):
# Stored Playlist Commands
"listplaylist": self._getlist,
"listplaylistinfo": self._getsongs,
+ "listplaylists": self._getplaylists,
"load": self._getnone,
"playlistadd": self._getnone,
"playlistclear": self._getnone,
@@ -262,6 +263,9 @@ class MPDClient(object):
def _getsongs(self):
return self._getobjects(["file"])
+ def _getplaylists(self):
+ return self._getobjects(["playlist"])
+
def _getdatabase(self):
return self._getobjects(["file", "directory", "playlist"])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git
More information about the Pkg-mpd-commits
mailing list