aboutsummaryrefslogtreecommitdiffstats
path: root/doc/protocol.xml
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-04-26 23:15:31 +0200
committerMax Kellermann <max@duempel.org>2014-04-27 22:27:43 +0200
commitbc2a1160b824c3ccf98ed658ef0d60c0f3d5bf5c (patch)
tree6daa38432619e8e0713504de3972af73007164df /doc/protocol.xml
parent75542e8f5d615c31282e6e8562bb1b71222af999 (diff)
downloadmpd-bc2a1160b824c3ccf98ed658ef0d60c0f3d5bf5c.tar.gz
mpd-bc2a1160b824c3ccf98ed658ef0d60c0f3d5bf5c.tar.xz
mpd-bc2a1160b824c3ccf98ed658ef0d60c0f3d5bf5c.zip
db/Count: implement grouping
Diffstat (limited to 'doc/protocol.xml')
-rw-r--r--doc/protocol.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/protocol.xml b/doc/protocol.xml
index e1fb08a84..e9c28995b 100644
--- a/doc/protocol.xml
+++ b/doc/protocol.xml
@@ -1493,12 +1493,15 @@ OK
<title>The music database</title>
<variablelist>
+
<varlistentry id="command_count">
<term>
<cmdsynopsis>
<command>count</command>
<arg choice="req"><replaceable>TAG</replaceable></arg>
<arg choice="req"><replaceable>NEEDLE</replaceable></arg>
+ <arg choice="opt">group</arg>
+ <arg choice="opt"><replaceable>GROUPTYPE</replaceable></arg>
</cmdsynopsis>
</term>
<listitem>
@@ -1506,8 +1509,15 @@ OK
Counts the number of songs and their total playtime in
the db matching <varname>TAG</varname> exactly.
</para>
+ <para>
+ The <parameter>group</parameter> keyword may be used to
+ group the results by a tag. The following prints
+ per-artist counts:
+ </para>
+ <programlisting>count group artist</programlisting>
</listitem>
</varlistentry>
+
<varlistentry id="command_find">
<term>
<cmdsynopsis>