From 8d479631733614b46a786022a53c8e40a4e92a1b Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Tue, 12 Nov 2013 19:43:47 +0100 Subject: [PATCH] Add readcomments and toggleoutput commands --- doc/commands.txt | 2 ++ musicpd.py | 2 ++ setup.py | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) 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"], ) -- 2.39.5