X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=mpd.py;h=d40b5fab8791291db4e48b174fc97b29989533a8;hp=e4279398293c24a82f02de672545a07a28452187;hb=a299df609a97947e767e721e0623442b64705ac9;hpb=0dfcd8a5c40c7bbed2e7e59a60bcbe046ee2b7af diff --git a/mpd.py b/mpd.py index e427939..d40b5fa 100644 --- a/mpd.py +++ b/mpd.py @@ -67,6 +67,8 @@ class MPDClient(object): # Playback Option Commands "consume": self._fetch_nothing, "crossfade": self._fetch_nothing, + "mixrampdb": self._fetch_nothing, + "mixrampdelay": self._fetch_nothing, "random": self._fetch_nothing, "repeat": self._fetch_nothing, "setvol": self._fetch_nothing, @@ -114,12 +116,14 @@ class MPDClient(object): # Database Commands "count": self._fetch_object, "find": self._fetch_songs, + "findadd": self._fetch_nothing, "list": self._fetch_list, "listall": self._fetch_database, "listallinfo": self._fetch_database, "lsinfo": self._fetch_database, "search": self._fetch_songs, "update": self._fetch_item, + "rescan": self._fetch_item, # Sticker Commands "sticker get": self._fetch_item, "sticker set": self._fetch_nothing, @@ -140,6 +144,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 +328,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 +343,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())