]> kaliko git repositories - python-musicpd.git/commitdiff
Allow send_noidle to cancel idle as plain noidle does
authorKaliko Jack <kaliko@azylum.org>
Thu, 19 Jun 2014 11:58:05 +0000 (13:58 +0200)
committerKaliko Jack <kaliko@azylum.org>
Thu, 19 Jun 2014 11:58:05 +0000 (13:58 +0200)
musicpd.py

index 118309f351402ae6c1ed8d7df56aae97d878842c..fe14987dc54af0355a399b90bd8f3c294b35c28b 100644 (file)
@@ -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