1.. _Stats:
2
3Library Statistics
4==================
5
6Play Count
7----------
8
9The internal ``~#playcount`` tag gets incremented after a song ends or is
10forced to end by the user and the time it was played was more than half of
11the song's duration.
12
13In case of radio streams, which don't have a defined duration, the play
14count gets incremented whenever the stream is played.
15
16Searching for all songs that where played more than 10 times:
17
18.. code-block:: text
19
20    #(playcount > 10)
21
22
23Last Played Time
24----------------
25
26The ``~#lastplayed`` tag gets updated to the current time whenever
27``~#playcount`` gets incremented.
28
29Searching for all songs played less than 4 days ago:
30
31.. code-block:: text
32
33    #(lastplayed < 4 days)
34
35
36Last Started Time
37-----------------
38
39The ``~#laststarted`` tag gets updated to the current time whenever the
40song gets started.
41
42
43Searching for all songs started less than 1 week ago:
44
45.. code-block:: text
46
47    #(laststarted < 1 week)
48
49
50Skip Count
51----------
52
53The ``~#skipcount`` tag gets incremented whenever the song gets forced to end
54by the user and the playing time was less than half of the song's duration.
55
56Searching for songs that where skipped between 5 and 10 times:
57
58.. code-block:: text
59
60    #(5 <= skipcount <= 10)
61