From e8daa719b31e6728f697fdc2812d969038ebe159 Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Thu, 19 Jun 2014 13:58:05 +0200 Subject: [PATCH] Allow send_noidle to cancel idle as plain noidle does --- musicpd.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2