]> kaliko git repositories - python-musicpd.git/blobdiff - musicpd.py
Add unittest
[python-musicpd.git] / musicpd.py
index 118309f351402ae6c1ed8d7df56aae97d878842c..0fe3b671deff665e3ff73c6394ac7d363e9eb693 100644 (file)
@@ -24,7 +24,7 @@ HELLO_PREFIX = "OK MPD "
 ERROR_PREFIX = "ACK "
 SUCCESS = "OK"
 NEXT = "list_OK"
-VERSION = '0.4.1'
+VERSION = '0.4.2'
 
 
 class MPDError(Exception):
@@ -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