command/player: show partition name in "status" response

This commit is contained in:
Max Kellermann
2020-01-18 23:29:38 +01:00
parent 4029a79dc2
commit f249a755e2
3 changed files with 7 additions and 0 deletions

View File

@@ -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(),