Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f249a755
Commit
f249a755
authored
Jan 18, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/player: show partition name in "status" response
parent
4029a79d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
NEWS
NEWS
+1
-0
protocol.rst
doc/protocol.rst
+4
-0
PlayerCommands.cxx
src/command/PlayerCommands.cxx
+2
-0
No files found.
NEWS
View file @
f249a755
...
...
@@ -4,6 +4,7 @@ ver 0.22 (not yet released)
"window" parameters
- add command "readpicture" to download embedded pictures
- command "moveoutput" moves an output between partitions
- show partition name in "status" response
* tags
- new tags "Grouping" (for ID3 "TIT1"), "Work" and "Conductor"
* input
...
...
doc/protocol.rst
View file @
f249a755
...
...
@@ -439,6 +439,8 @@ Querying :program:`MPD`'s status
Reports the current status of the player and the volume
level.
- ``partition``: the name of the current partition (see
:ref:`partition_commands`)
- ``volume``: ``0-100`` (deprecated: ``-1`` if the volume cannot
be determined)
- ``repeat``: ``0`` or ``1``
...
...
@@ -1238,6 +1240,8 @@ Connection settings
Announce that this client is interested in all tag
types. This is the default setting for new clients.
.. _partition_commands:
Partition commands
==================
...
...
src/command/PlayerCommands.cxx
View file @
f249a755
...
...
@@ -138,6 +138,7 @@ handle_status(Client &client, gcc_unused Request args, Response &r)
COMMAND_STATUS_RANDOM
": %i
\n
"
COMMAND_STATUS_SINGLE
": %s
\n
"
COMMAND_STATUS_CONSUME
": %i
\n
"
"partition: %s
\n
"
COMMAND_STATUS_PLAYLIST
": %li
\n
"
COMMAND_STATUS_PLAYLIST_LENGTH
": %i
\n
"
COMMAND_STATUS_MIXRAMPDB
": %f
\n
"
...
...
@@ -146,6 +147,7 @@ handle_status(Client &client, gcc_unused Request args, Response &r)
playlist
.
GetRandom
(),
SingleToString
(
playlist
.
GetSingle
()),
playlist
.
GetConsume
(),
partition
.
name
.
c_str
(),
(
unsigned
long
)
playlist
.
GetVersion
(),
playlist
.
GetLength
(),
pc
.
GetMixRampDb
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment