X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=musicpd.py;h=fe14987dc54af0355a399b90bd8f3c294b35c28b;hb=e8daa719;hp=118309f351402ae6c1ed8d7df56aae97d878842c;hpb=28fdb74239a4cc7afc04d500573cb8088b6a083a;p=python-musicpd.git 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