X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=musicpd.py;h=e281a922522fb257ff858393d3108eec505d1669;hb=d28bd57ddc3465db4fcaa540fe7cb3de53f8be6b;hp=6bb050990c900c6585bcb3c61ade7aa89eb3d0a2;hpb=ffbd90666dc18d72ca0c30ff8b34a629878de6f4;p=python-musicpd.git diff --git a/musicpd.py b/musicpd.py index 6bb0509..e281a92 100644 --- a/musicpd.py +++ b/musicpd.py @@ -15,6 +15,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with python-musicpd. If not, see . +# pylint: disable=C0111 + import socket @@ -22,7 +24,7 @@ HELLO_PREFIX = "OK MPD " ERROR_PREFIX = "ACK " SUCCESS = "OK" NEXT = "list_OK" -VERSION = '0.3.1b' +VERSION = '0.4.0pr1' class MPDError(Exception): @@ -131,6 +133,7 @@ class MPDClient(object): "searchaddpl": self._fetch_nothing, "update": self._fetch_item, "rescan": self._fetch_item, + "readcomments": self._fetch_object, # Sticker Commands "sticker get": self._fetch_item, "sticker set": self._fetch_nothing, @@ -145,6 +148,7 @@ class MPDClient(object): # Audio Output Commands "disableoutput": self._fetch_nothing, "enableoutput": self._fetch_nothing, + "toggleoutput": self._fetch_nothing, "outputs": self._fetch_outputs, # Reflection Commands "commands": self._fetch_list, @@ -380,6 +384,7 @@ class MPDClient(object): self.mpd_version = line[len(HELLO_PREFIX):].strip() def _reset(self): + # pylint: disable=w0201 self.mpd_version = None self._iterating = False self._pending = []