From: Kaliko Jack Date: Tue, 12 Nov 2013 18:43:47 +0000 (+0100) Subject: Add readcomments and toggleoutput commands X-Git-Tag: v0.4.0~8 X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=commitdiff_plain;h=8d479631733614b46a786022a53c8e40a4e92a1b Add readcomments and toggleoutput commands --- diff --git a/doc/commands.txt b/doc/commands.txt index d71063f..1ec938c 100644 --- a/doc/commands.txt +++ b/doc/commands.txt @@ -72,6 +72,7 @@ lsinfo [] -> fetch_database search -> fetch_songs update [] -> fetch_item rescan [] -> fetch_item +readcomments -> fetch_object == Sticker Commands sticker get -> fetch_item @@ -89,6 +90,7 @@ ping -> fetch_nothing == Audio Output Commands disableoutput -> fetch_nothing enableoutput -> fetch_nothing +toggleoutput -> fetch_nothing outputs -> fetch_outputs == Reflection Commands diff --git a/musicpd.py b/musicpd.py index 6bb0509..f365bb0 100644 --- a/musicpd.py +++ b/musicpd.py @@ -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, diff --git a/setup.py b/setup.py index 4e31856..e3418ab 100644 --- 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"], )