[Pkg-mpd-commits] [python-mpd] 70/262: adding sticker commands
Simon McVittie
smcv at debian.org
Sun May 22 18:16:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch upstream
in repository python-mpd.
commit b38fd7af26788bb6c81235733209bbeb0391abc8
Author: J. Alexander Treuman <jat at spatialrift.net>
Date: Mon Nov 29 14:11:19 2010 -0500
adding sticker commands
---
doc/commands.txt | 143 +++++++++++++++++++++++++++++--------------------------
mpd.py | 6 +++
2 files changed, 81 insertions(+), 68 deletions(-)
diff --git a/doc/commands.txt b/doc/commands.txt
index 6762d52..46a85ba 100644
--- a/doc/commands.txt
+++ b/doc/commands.txt
@@ -1,85 +1,92 @@
== Status Commands
-clearerror -> fetch_nothing
-currentsong -> fetch_object
-idle <str> -> fetch_list
-noidle -> None
-status -> fetch_object
-stats -> fetch_object
+clearerror -> fetch_nothing
+currentsong -> fetch_object
+idle <str> -> fetch_list
+noidle -> None
+status -> fetch_object
+stats -> fetch_object
== Playback Option Commands
-consume <bool> -> fetch_nothing
-crossfade <int> -> fetch_nothing
-random <bool> -> fetch_nothing
-repeat <bool> -> fetch_nothing
-setvol <int> -> fetch_nothing
-single <bool> -> fetch_nothing
-volume <int> -> fetch_nothing
+consume <bool> -> fetch_nothing
+crossfade <int> -> fetch_nothing
+random <bool> -> fetch_nothing
+repeat <bool> -> fetch_nothing
+setvol <int> -> fetch_nothing
+single <bool> -> fetch_nothing
+volume <int> -> fetch_nothing
== Playback Control Commands
-next -> fetch_nothing
-pause [<bool>] -> fetch_nothing
-play [<int>] -> fetch_nothing
-playid [<int>] -> fetch_nothing
-previous -> fetch_nothing
-seek <int> <int> -> fetch_nothing
-seekid <int> <int> -> fetch_nothing
-stop -> fetch_nothing
+next -> fetch_nothing
+pause [<bool>] -> fetch_nothing
+play [<int>] -> fetch_nothing
+playid [<int>] -> fetch_nothing
+previous -> fetch_nothing
+seek <int> <int> -> fetch_nothing
+seekid <int> <int> -> fetch_nothing
+stop -> fetch_nothing
== Playlist Commands
-add <str> -> fetch_nothing
-addid <str> [<int>] -> fetch_item
-clear -> fetch_nothing
-delete <int> -> fetch_nothing
-deleteid <int> -> fetch_nothing
-move <int> <int> -> fetch_nothing
-moveid <int> <int> -> fetch_nothing
-playlist -> fetch_playlist
-playlistfind <locate> -> fetch_songs
-playlistid [<int>] -> fetch_songs
-playlistinfo [<int>] -> fetch_songs
-playlistsearch <locate> -> fetch_songs
-plchanges <int> -> fetch_songs
-plchangesposid <int> -> fetch_changes
-shuffle -> fetch_nothing
-swap <int> <int> -> fetch_nothing
-swapid <int> <int> -> fetch_nothing
+add <str> -> fetch_nothing
+addid <str> [<int>] -> fetch_item
+clear -> fetch_nothing
+delete <int> -> fetch_nothing
+deleteid <int> -> fetch_nothing
+move <int> <int> -> fetch_nothing
+moveid <int> <int> -> fetch_nothing
+playlist -> fetch_playlist
+playlistfind <locate> -> fetch_songs
+playlistid [<int>] -> fetch_songs
+playlistinfo [<int>] -> fetch_songs
+playlistsearch <locate> -> fetch_songs
+plchanges <int> -> fetch_songs
+plchangesposid <int> -> fetch_changes
+shuffle -> fetch_nothing
+swap <int> <int> -> fetch_nothing
+swapid <int> <int> -> fetch_nothing
== Stored Playlist Commands
-listplaylist <str> -> fetch_list
-listplaylistinfo <str> -> fetch_songs
-listplaylists -> fetch_playlists
-load <str> -> fetch_nothing
-playlistadd <str> <str> -> fetch_nothing
-playlistclear <str> -> fetch_nothing
-playlistdelete <str> <int> -> fetch_nothing
-playlistmove <str> <int> <int> -> fetch_nothing
-rename <str> <str> -> fetch_nothing
-rm <str> -> fetch_nothing
-save <str> -> fetch_nothing
+listplaylist <str> -> fetch_list
+listplaylistinfo <str> -> fetch_songs
+listplaylists -> fetch_playlists
+load <str> -> fetch_nothing
+playlistadd <str> <str> -> fetch_nothing
+playlistclear <str> -> fetch_nothing
+playlistdelete <str> <int> -> fetch_nothing
+playlistmove <str> <int> <int> -> fetch_nothing
+rename <str> <str> -> fetch_nothing
+rm <str> -> fetch_nothing
+save <str> -> fetch_nothing
== Database Commands
-count <locate> -> fetch_object
-find <locate> -> fetch_songs
-list <str> [<locate>] -> fetch_list
-listall [<str>] -> fetch_database
-listallinfo [<str>] -> fetch_database
-lsinfo [<str>] -> fetch_database
-search <locate> -> fetch_songs
-update [<str>] -> fetch_item
+count <locate> -> fetch_object
+find <locate> -> fetch_songs
+list <str> [<locate>] -> fetch_list
+listall [<str>] -> fetch_database
+listallinfo [<str>] -> fetch_database
+lsinfo [<str>] -> fetch_database
+search <locate> -> fetch_songs
+update [<str>] -> fetch_item
+
+== Sticker Commands
+sticker get <str> <str> <str> -> fetch_item
+sticker set <str> <str> <str> <str> -> fetch_nothing
+sticker delete <str> <str> [<str>] -> fetch_nothing
+sticker list <str> <str> -> fetch_list
+sticker find <str> <str> <str> -> fetch_songs
== Connection Commands
-close -> None
-kill -> None
-password <str> -> fetch_nothing
-ping -> fetch_nothing
+close -> None
+kill -> None
+password <str> -> fetch_nothing
+ping -> fetch_nothing
== Audio Output Commands
-disableoutput <int> -> fetch_nothing
-enableoutput <int> -> fetch_nothing
-outputs -> fetch_outputs
+disableoutput <int> -> fetch_nothing
+enableoutput <int> -> fetch_nothing
+outputs -> fetch_outputs
== Reflection Commands
-commands -> fetch_list
-notcommands -> fetch_list
-tagtypes -> fetch_list
-urlhandlers -> fetch_list
+commands -> fetch_list
+notcommands -> fetch_list
+tagtypes -> fetch_list
+urlhandlers -> fetch_list
diff --git a/mpd.py b/mpd.py
index 56112a9..7f61075 100644
--- a/mpd.py
+++ b/mpd.py
@@ -120,6 +120,12 @@ class MPDClient(object):
"lsinfo": self._fetch_database,
"search": self._fetch_songs,
"update": self._fetch_item,
+ # Sticker Commands
+ "sticker get": self._fetch_item,
+ "sticker set": self._fetch_nothing,
+ "sticker delete": self._fetch_nothing,
+ "sticker list": self._fetch_list,
+ "sticker find": self._fetch_songs,
# Connection Commands
"close": None,
"kill": None,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git
More information about the Pkg-mpd-commits
mailing list