From: Kaliko Jack Date: Thu, 19 Jun 2014 11:58:05 +0000 (+0200) Subject: Allow send_noidle to cancel idle as plain noidle does X-Git-Tag: v0.4.2~10 X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=commitdiff_plain;h=e8daa719b31e6728f697fdc2812d969038ebe159 Allow send_noidle to cancel idle as plain noidle does --- diff --git a/musicpd.py b/musicpd.py index 118309f..fe14987 100644 --- a/musicpd.py +++ b/musicpd.py @@ -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