[Pkg-mpd-commits] [python-mpd] 112/262: mpd.py remove "volume" and add "config" command

Simon McVittie smcv at debian.org
Sun May 22 18:16:33 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 908372cacd639b62587b227bbffb1b85c17f32be
Author: Jörg Thalheim <jthalheim at gmail.com>
Date:   Mon Mar 19 21:16:15 2012 +0100

    mpd.py remove "volume" and add "config" command
    
    "volume" was deprecated many years ago.
    "config" show the music directory (only for unix socket connections)
---
 README.md | 3 ++-
 mpd.py    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 4c6b20d..49aa853 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,8 @@ Current features list:
 
  - python3 support (python2.6 is minimum python version required)
  - support for the upcoming client-to-client protocol
- - adding new commands of mpd (seekcur, prio, prioid)
+ - adding new commands of mpd v0.17 (seekcur, prio, prioid, config)
+ - remove of deprecated commands (volume)
  - methods are explicit declared now, so they are shown in ipython
  - add unit tests
  - documented API to add new commands (see Future Compatible)
diff --git a/mpd.py b/mpd.py
index 097ee28..f319993 100644
--- a/mpd.py
+++ b/mpd.py
@@ -72,7 +72,6 @@ _commands = {
     "single":             "_fetch_nothing",
     "replay_gain_mode":   "_fetch_nothing",
     "replay_gain_status": "_fetch_item",
-    "volume":             "_fetch_nothing",
     # Playback Control Commands
     "next":               "_fetch_nothing",
     "pause":              "_fetch_nothing",
@@ -142,6 +141,7 @@ _commands = {
     "enableoutput":       "_fetch_nothing",
     "outputs":            "_fetch_outputs",
     # Reflection Commands
+    "config":             "_fetch_item",
     "commands":           "_fetch_list",
     "notcommands":        "_fetch_list",
     "tagtypes":           "_fetch_list",

-- 
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