]> kaliko git repositories - python-musicpd.git/commitdiff
Add readcomments and toggleoutput commands
authorKaliko Jack <kaliko@azylum.org>
Tue, 12 Nov 2013 18:43:47 +0000 (19:43 +0100)
committerKaliko Jack <kaliko@azylum.org>
Tue, 12 Nov 2013 18:43:47 +0000 (19:43 +0100)
doc/commands.txt
musicpd.py
setup.py

index d71063f40ad9b3138a673fac4d4fc471c4fdfc2d..1ec938c20838a85f16dd17e2a8f63732ea6f6788 100644 (file)
@@ -72,6 +72,7 @@ lsinfo             [<str>]                 -> fetch_database
 search             <locate>                -> fetch_songs
 update             [<str>]                 -> fetch_item
 rescan             [<str>]                 -> fetch_item
+readcomments       <str>                   -> fetch_object
 
 == Sticker Commands
 sticker   get      <str> <str> <str>       -> fetch_item
@@ -89,6 +90,7 @@ ping                                       -> fetch_nothing
 == Audio Output Commands
 disableoutput      <int>                   -> fetch_nothing
 enableoutput       <int>                   -> fetch_nothing
+toggleoutput       <int>                   -> fetch_nothing
 outputs                                    -> fetch_outputs
 
 == Reflection Commands
index 6bb050990c900c6585bcb3c61ade7aa89eb3d0a2..f365bb021027948bf731e18dd5dc08d47a31575b 100644 (file)
@@ -131,6 +131,7 @@ class MPDClient(object):
             "searchaddpl":        self._fetch_nothing,
             "update":             self._fetch_item,
             "rescan":             self._fetch_item,
+            "readcomments":       self._fetch_object,
             # Sticker Commands
             "sticker get":        self._fetch_item,
             "sticker set":        self._fetch_nothing,
@@ -145,6 +146,7 @@ class MPDClient(object):
             # Audio Output Commands
             "disableoutput":      self._fetch_nothing,
             "enableoutput":       self._fetch_nothing,
+            "toggleoutput":       self._fetch_nothing,
             "outputs":            self._fetch_outputs,
             # Reflection Commands
             "commands":           self._fetch_list,
index 4e3185691b8603e777ed18193367e7d59a25d159..e3418aba980dc354729a8f039cc33ebe4491c424 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -47,9 +47,9 @@ setup(
     download_url="http://pypi.python.org/pypi/python-musicpd/",
     py_modules=["musicpd"],
     classifiers=CLASSIFIERS,
-    #license=LICENSE,
+    license=LICENSE,
     keywords=["mpd"],
-    #platforms=["Independant"],
+    platforms=["Independant"],
 )