X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=musicpd.py;h=0fe3b671deff665e3ff73c6394ac7d363e9eb693;hb=21c2a1843902d21f559af15cdd3eb8a9f35a8b86;hp=118309f351402ae6c1ed8d7df56aae97d878842c;hpb=28fdb74239a4cc7afc04d500573cb8088b6a083a;p=python-musicpd.git diff --git a/musicpd.py b/musicpd.py index 118309f..0fe3b67 100644 --- a/musicpd.py +++ b/musicpd.py @@ -24,7 +24,7 @@ HELLO_PREFIX = "OK MPD " ERROR_PREFIX = "ACK " SUCCESS = "OK" NEXT = "list_OK" -VERSION = '0.4.1' +VERSION = '0.4.2' class MPDError(Exception): @@ -190,6 +190,8 @@ class MPDClient: } def __getattr__(self, attr): + if attr == 'send_noidle': # have send_noidle to cancel idle as well as noidle + return self.noidle() if attr.startswith("send_"): command = attr.replace("send_", "", 1) wrapper = self._send