From 96d64b58738f66d3b65ed18e43d3f24134323f1b Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Sun, 16 Nov 2014 23:57:54 +0100 Subject: [PATCH] Add addtagid and cleartagid commands (MPD 0.19) Also add missing priority commands (prio and prioid) --- CHANGES.txt | 2 ++ doc/commands.txt | 14 +++++++++----- musicpd.py | 4 ++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index a82e7ca..66f0629 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,8 @@ Changes in 0.4.2 UNRELEASED * Add unittest (requires mock) * Add mounts and neighbors commands (mount, unmount, listmounts and listneighbors) +* Add tag editing commands (addtagid and cleartagid) +* Add missing priority commands (prio and prioid) Changes in 0.4.1 ---------------- diff --git a/doc/commands.txt b/doc/commands.txt index 0e169c3..92ef071 100644 --- a/doc/commands.txt +++ b/doc/commands.txt @@ -33,26 +33,30 @@ stop -> fetch_nothing add -> fetch_nothing addid [] -> fetch_item clear -> fetch_nothing -delete -> fetch_nothing +delete | -> fetch_nothing deleteid -> fetch_nothing -move -> fetch_nothing +move | -> fetch_nothing moveid -> fetch_nothing playlist -> fetch_playlist playlistfind -> fetch_songs playlistid [] -> fetch_songs -playlistinfo [] -> fetch_songs +playlistinfo [|] -> fetch_songs playlistsearch -> fetch_songs plchanges -> fetch_songs plchangesposid -> fetch_changes -shuffle [] -> fetch_nothing +prio | -> self._fetch_nothing, +prioid -> self._fetch_nothing, +shuffle [] -> fetch_nothing swap -> fetch_nothing swapid -> fetch_nothing +addtagid -> fetch_nothing +cleartagid [] -> fetch_nothing == Stored Playlist Commands listplaylist -> fetch_list listplaylistinfo -> fetch_songs listplaylists -> fetch_playlists -load -> fetch_nothing +load [] -> fetch_nothing playlistadd -> fetch_nothing playlistclear -> fetch_nothing playlistdelete -> fetch_nothing diff --git a/musicpd.py b/musicpd.py index 8358ddc..3d18bfe 100644 --- a/musicpd.py +++ b/musicpd.py @@ -130,9 +130,13 @@ class MPDClient: "playlistsearch": self._fetch_songs, "plchanges": self._fetch_songs, "plchangesposid": self._fetch_changes, + "prio": self._fetch_nothing, + "prioid": self._fetch_nothing, "shuffle": self._fetch_nothing, "swap": self._fetch_nothing, "swapid": self._fetch_nothing, + "addtagid": self._fetch_nothing, + "cleartagid": self._fetch_nothing, # Stored Playlist Commands "listplaylist": self._fetch_list, "listplaylistinfo": self._fetch_songs, -- 2.39.5