doc/protocol.xml: Add examples to the description of 'count'
This commit is contained in:
parent
0ab6c176af
commit
a3d1b107f4
@ -1626,14 +1626,20 @@ OK
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Counts the number of songs and their total playtime in
|
Counts the number of songs and their total playtime in
|
||||||
the db matching <varname>TAG</varname> exactly.
|
the db matching <varname>TAG</varname> exactly. The
|
||||||
|
following prints the number of songs whose title matches
|
||||||
|
"Echoes":
|
||||||
</para>
|
</para>
|
||||||
|
<programlisting>count title Echoes</programlisting>
|
||||||
<para>
|
<para>
|
||||||
The <parameter>group</parameter> keyword may be used to
|
The <parameter>group</parameter> keyword may be used to
|
||||||
group the results by a tag. The following prints
|
group the results by a tag. The first following example
|
||||||
per-artist counts:
|
prints per-artist counts while the next prints the
|
||||||
|
number of songs whose title matches "Echoes" grouped by
|
||||||
|
artist:
|
||||||
</para>
|
</para>
|
||||||
<programlisting>count group artist</programlisting>
|
<programlisting>count group artist</programlisting>
|
||||||
|
<programlisting>count title Echoes group artist</programlisting>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user