python-mpd

python-mpd Commit Details

Date:2010-12-13 23:47:49 (2 years 5 months ago)
Author:J. Alexander Treuman
Branch:
Commit:41739e1aecb43642963e2cbb6164994c841cee1d
Parents: 5d25554f5fcefa62e4c6069f7b15b208a81f8f87
Message:adding decoders command

File differences

doc/commands.txt
9090notcommands -> fetch_list
9191tagtypes -> fetch_list
9292urlhandlers -> fetch_list
93decoders -> fetch_plugins
mpd.py
140140            "notcommands": self._fetch_list,
141141            "tagtypes": self._fetch_list,
142142            "urlhandlers": self._fetch_list,
143            "decoders": self._fetch_plugins,
143144        }
144145
145146    def __getattr__(self, attr):
...... 
323324    def _fetch_objects(self, delimiters):
324325        return self._wrap_iterator(self._read_objects(delimiters))
325326
327    def _fetch_changes(self):
328        return self._fetch_objects(["cpos"])
329
326330    def _fetch_songs(self):
327331        return self._fetch_objects(["file"])
328332
...... 
335339    def _fetch_outputs(self):
336340        return self._fetch_objects(["outputid"])
337341
338    def _fetch_changes(self):
339        return self._fetch_objects(["cpos"])
342    def _fetch_plugins(self):
343        return self._fetch_objects(["plugin"])
340344
341345    def _fetch_command_list(self):
342346        return self._wrap_iterator(self._read_command_list())

Archive Download the corresponding diff file

Branches

Tags