From 709fc59e4336d48eb69b329d776a1d73cacd3cb4 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Wed, 27 Jul 2011 00:28:18 +0200 Subject: [PATCH] Extract our clearifications to the mpd doc --- mopidy/frontends/mpd/protocol/status.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mopidy/frontends/mpd/protocol/status.py b/mopidy/frontends/mpd/protocol/status.py index 0b5ff1df..20a66775 100644 --- a/mopidy/frontends/mpd/protocol/status.py +++ b/mopidy/frontends/mpd/protocol/status.py @@ -137,7 +137,7 @@ def status(context): Reports the current status of the player and the volume level. - - ``volume``: 0-100 (or -1 if no output is set). + - ``volume``: 0-100 - ``repeat``: 0 or 1 - ``single``: 0 or 1 - ``consume``: 0 or 1 @@ -153,13 +153,17 @@ def status(context): - ``nextsongid``: playlist songid of the next song to be played - ``time``: total time elapsed (of current playing/paused song) - ``elapsed``: Total time elapsed within the current song, but with - higher resolution (i.e. time in seconds with milliseconds in decimal - places). + higher resolution. - ``bitrate``: instantaneous bitrate in kbps - ``xfade``: crossfade in seconds - ``audio``: sampleRate``:bits``:channels - ``updatings_db``: job id - ``error``: if there is an error, returns message here + + *Clarifications based on experience implementing* + - ``volume``: can also be -1 if no output is set. + - ``elapsed``: Higher resolution means time in seconds with three + decimal places for millisecond precision. """ futures = { 'current_playlist.tracks': context.backend.current_playlist.tracks,