X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=mpd.py;h=f18356bc8934c4f491467e1bfaec5271aaf905c0;hp=e4279398293c24a82f02de672545a07a28452187;hb=41739e1aecb43642963e2cbb6164994c841cee1d;hpb=5d25554f5fcefa62e4c6069f7b15b208a81f8f87 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())