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: https://git.kaliko.me/?a=commitdiff_plain;h=e8daa719;hp=28fdb74239a4cc7afc04d500573cb8088b6a083a;p=python-musicpd.git 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