chiark / gitweb /
Merge from trunk
[disorder] / doc / disorder_preferences.5.in
CommitLineData
3d1452ab
RK
1.\"
2.\" Copyright (C) 2008 Richard Kettlewell
3.\"
e7eb3a27 4.\" This program is free software: you can redistribute it and/or modify
3d1452ab 5.\" it under the terms of the GNU General Public License as published by
e7eb3a27 6.\" the Free Software Foundation, either version 3 of the License, or
3d1452ab 7.\" (at your option) any later version.
e7eb3a27
RK
8.\"
9.\" This program is distributed in the hope that it will be useful,
10.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
11.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12.\" GNU General Public License for more details.
13.\"
3d1452ab 14.\" You should have received a copy of the GNU General Public License
e7eb3a27 15.\" along with this program. If not, see <http://www.gnu.org/licenses/>.
3d1452ab
RK
16.\"
17.TH disorder_preferences 5
18.SH NAME
19disorder_preferences \- DisOrder global and per-track preferences
20.SH "PER-TRACK PREFERENCES"
21Currently the following preferences are supported.
22Some are expected to be set by users, others updated automatically by plugins.
23.TP
24.B pick_at_random
25If this preference is present and set to "0" then the track will not
26be picked for random play.
27Otherwise it may be.
28.TP
29.B played
30A decimal integer giving the number times the track was played.
31This includes tracks that are scratched or were picked at random.
32.TP
33.B played_time
34The last time the track was played, as a \fBtime_t\fR converted to a
35decimal integer.
36.TP
37.B scratched
38The number of times the track has been scratched.
39.TP
40.B requested
41A decimal integer giving the number of times the track was requested.
42(Tracks that are removed before being played are not counted.)
43.TP
44.B tags
45Tags that apply to this track, separated by commas.
46Tags can contain any printing character except comma.
47Leading and trailing spaces are not significant but internal spaces are.
48.IP
49Using the
50.B required\-tags
51and
52.B prohibited\-tags
53global preferences, it is possible to limit the tracks that will be selected at
54random.
55.TP
56.B trackname_\fICONTEXT\fB_\fIPART\fR
57These preferences can be used to override the filename parsing rules
58to find a track name part.
59For backwards compatibility, \fBtrackname_\fIPART\fR will be used
60if the full version is not present.
61.TP
62.B unscratched
63The number of times the track has been played to completion without
64being scratched.
65.TP
66.B weight
67The weight for this track. Weights are non-negative integers which determine
68the relative likelihood of a track being picked at random (i.e. if track A has
69twice the weight of track B then it is twice as likely to be picked at random).
70A track with weight 0 will not be picked at random, though \fBpick_at_random\fR
71is a more sensible way to configure this.
72.IP
73The default weight, used if no weight is set or the weight value is invalid, is
7490000. Note that many other factors than track weight affect whether a track
75will be played - tracks already in the queue will not be picked at random for
76instance.
77.IP
78The maximum allowed weight is 2147483647. If you set a larger value it will be
79clamped to this value. Negative weights will be completely ignored and the
80default value used instead.
81.SH "GLOBAL PREFERENCES"
82These are the values set with \fBset\-global\fR.
83.TP
84.B required\-tags
85If this is set an nonempty then randomly played tracks will always have at
86least one of the listed tags.
87.TP
88.B prohibited\-tags
89If this is set an nonempty then randomly played tracks will never have any of
90the listed tags.
91.TP
92.B playing
93If unset or \fByes\fR then play is enabled.
94Otherwise it is disabled.
95Use \fBdisable\fR rather than setting it directly.
96.TP
97.B random\-play
98If unset or \fByes\fR then random play is enabled.
99Otherwise it is disabled.
100Use \fBdisable\fR rather than setting it directly.
101.PP
102Global preferences starting '_' are read-only (in the sense that you cannot
103modify them; the server may modify them as part of its normal operation).
104They are:
105.TP
106.B _dbversion
107The database version string.
108This is used by DisOrder to detect when it must
109modify the database after an upgrade.
110.SH "SEE ALSO"
111\fBdisorder\fR(1), \fBdisorderd\fR(8), \fBdisorder_config\fR(5)
112.\" Local Variables:
113.\" mode:nroff
114.\" fill-column:79
115.\" End: