[Pkg-mpd-commits] [python-mpd] 74/262: adding decoders command
Simon McVittie
smcv at debian.org
Sun May 22 18:16:27 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 41739e1aecb43642963e2cbb6164994c841cee1d
Author: J. Alexander Treuman <jat at spatialrift.net>
Date: Mon Dec 13 17:47:49 2010 -0500
adding decoders command
---
doc/commands.txt | 1 +
mpd.py | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/doc/commands.txt b/doc/commands.txt
index 826e482..8fb069d 100644
--- a/doc/commands.txt
+++ b/doc/commands.txt
@@ -90,3 +90,4 @@ commands -> fetch_list
notcommands -> fetch_list
tagtypes -> fetch_list
urlhandlers -> fetch_list
+decoders -> fetch_plugins
diff --git a/mpd.py b/mpd.py
index e427939..f18356b 100644
--- a/mpd.py
+++ b/mpd.py
@@ -140,6 +140,7 @@ class MPDClient(object):
"notcommands": self._fetch_list,
"tagtypes": self._fetch_list,
"urlhandlers": self._fetch_list,
+ "decoders": self._fetch_plugins,
}
def __getattr__(self, attr):
@@ -323,6 +324,9 @@ class MPDClient(object):
def _fetch_objects(self, delimiters):
return self._wrap_iterator(self._read_objects(delimiters))
+ def _fetch_changes(self):
+ return self._fetch_objects(["cpos"])
+
def _fetch_songs(self):
return self._fetch_objects(["file"])
@@ -335,8 +339,8 @@ class MPDClient(object):
def _fetch_outputs(self):
return self._fetch_objects(["outputid"])
- def _fetch_changes(self):
- return self._fetch_objects(["cpos"])
+ def _fetch_plugins(self):
+ return self._fetch_objects(["plugin"])
def _fetch_command_list(self):
return self._wrap_iterator(self._read_command_list())
--
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