2 SF: afs.c aft.c attribute.c
5 IN: para error crypt sideband command string afh afs server list user_list
6 SN: list of afs commands
10 P: AFS_READ | AFS_WRITE
11 D: Add new audio files to the database.
12 U: add [-l] [-f] [-v] path...
13 H: Each given path may be either the full path to an audio
14 H: file, or the full path of a directory. In case of a
15 H: directory, all audio files in that directory are added
16 H: recursively. Only absolute paths are accepted.
20 H: -a Add all files. The default is to add only files ending in a
21 H: known suffix for a supported audio format.
23 H: -l Add files lazily. If the path already exists in the
24 H: database, skip this file. This operation is really cheap.
25 H: Use it when adding large directories if only a few files
28 H:-f Force adding/updating. Recompute the audio format handler data
29 H: even if a file with the same path and the same hash value exists.
31 H: -v Verbose mode. Print what is being done.
34 P: AFS_READ | AFS_WRITE
35 D: Initialize the osl tables for the audio file selector.
36 U: init [table_name ...]
37 H: When invoked without arguments, this command creates all tables. Otherwise
38 H: only the tables given by table_name... are created.
43 U: ls [-l[s|l|v|m]] [-p] [-a] [-r] [-d] [-s{p|s|l|n|f|c|i|y|b|d|a}] [pattern...]
44 H: Print a list of all audio files matching pattern.
48 H: -l Change listing mode. Defaults to short listing if not given.
50 H: -ls: short listing mode
52 H: -ll: long listing mode (equivalent to -l)
54 H: -lv: verbose listing mode
56 H: -lp: parser-friendly mode
58 H: -lm: mbox listing mode
60 H: -lc: chunk-table listing mode
62 H: -p List full path of audio file. If not specified, only the basename
63 H: of each file is printed.
65 H: -a List only files that are admissible with respect to the current mood or
68 H: -r Reverse sort order.
70 H: -d Print dates as seconds after the epoch.
72 H: -s Change sort order. Defaults to alphabetical path sort if not given.
76 H: -sl: sort by last played time.
78 H: -ss: sort by score (implies -a).
80 H: -sn: sort by num played count.
82 H: -sf: sort by frequency.
84 H: -sc: sort by number of channels.
86 H: -si: sort by image id.
88 H: -sy: sort by lyrics id.
90 H: -sb: sort by bit rate.
92 H: -sd: sort by duration.
94 H: -sa: sort by audio format.
99 U: lsatt [-i] [-l] [-r] [pattern]
100 H: Print the list of all defined attributes which match the
101 H: given pattern. If no pattern is given, the full list is
106 H: -i Sort attributes by id. The default is to sort alphabetically by name.
108 H: -l Print a long listing containing both identifier and attribute name. The
109 H: default is to print only the name.
111 H: -r Reverse sort order.
114 P: AFS_READ | AFS_WRITE
115 D: Set attribute(s) for all files matching a pattern.
116 U: setatt attribute{+|-}... pattern
117 H: Set ('+') or unset ('-') the given attributes for all audio files matching
120 H: setatt rock+ punk+ classic- '*foo.mp3'
122 H: sets the 'rock' and the 'punk' attribute but unsets the 'classic'
123 H: attribute of all files ending with 'foo.mp3'.
126 P: AFS_READ | AFS_WRITE
127 D: Add new attribute(s).
128 U: addatt attribute1...
129 H: This adds new attributes to the attribute table. At most 64
130 H: attributes may be defined.
133 P: AFS_READ | AFS_WRITE
134 D: Rename an attribute.
136 H: Rename attribute old to new.
140 D: Run integrity checks against osl tables.
141 U: check [-a] [-m] [-p]
142 H: Check the audio file table, the mood definitions and all
143 H: defined playlists and report any inconsistencies found.
147 H: -a Run audio file table checks. Checks for entries in the audio file
148 H: table which are not present in the file system. Moreover, it checks
149 H: whether the lyrics id and all entries in the audio file table are
152 H: -m Run syntax checks on all defined moods in the mood table.
154 H: -p Check all playlists for lines that correspond to files not contained
155 H: in the audio file table.
157 H: If called without arguments, all three checks are run.
160 P: AFS_READ | AFS_WRITE
161 D: Remove attribute(s).
163 H: Remove all attributes matching any given pattern. All information
164 H: about this attribute in the audio file table is lost.
167 P: AFS_READ | AFS_WRITE
168 D: Remove entries from the audio file table.
169 U: rm [-v] [-f] [-p] pattern...
170 H: Delete all entries in the audio file table that match any given pattern.
171 H: Note that affects the table entries only; paraslash won't touch your
172 H: audio files in any way.
175 H: -v Verbose mode. Explain what is being done.
177 H: -f Force mode. Ignore nonexistent files. Don't complain if nothing
180 H: -p Pathname match. Match a slash in the path only with a slash
181 H: in pattern and not by an asterisk (*) or a question mark
182 H: (?) metacharacter, nor by a bracket expression ([]) containing
183 H: a slash (see fnmatch(3)).
186 P: AFS_READ | AFS_WRITE
187 D: Manipulate the afs data for all audio files matching a pattern.
188 U: touch [-n=numplayed] [-l=lastplayed] [-y=lyrics_id] [-i=image_id] [-a=amp] [-v] [-p] pattern
189 H: If no option is given, lastplayed is set to the current time
190 H: and numplayed is increased by one. Otherwise, only the given
191 H: options are taken into account.
195 H: -n Set numplayed count. The number of times afs has selected this
196 H: audio file for streaming.
198 H: -l Set lastplayed time. The last time this audio file was selected.
199 H: Must be given as the number of seconds since the epoch. Example:
201 H: touch -l=$(date +%s) file
203 H: sets the lastplayed time of 'file' to the current time.
205 H: -y Set the lyrics id. Specify the lyrics data file associated with
208 H: -i Set the image id. Same as -y, but sets the image.
210 H: -a Set the amplification value (0-255). This determines a scaling
211 H: factor by which the amplitude should be multiplied in order to
212 H: normalize the volume of the audio file. A value of zero means
213 H: no amplification, 64 means the amplitude should be multiplied
214 H: by a factor of two, 128 by three and so on.
216 H: This value is used by the compress filter.
218 H: -v Verbose mode. Explain what is being done.
220 H: -p Pathname match. Match a slash in the path only with a slash
221 H: in pattern and not by an asterisk (*) or a question mark
222 H: (?) metacharacter, nor by a bracket expression ([]) containing
223 H: a slash (see fnmatch(3)).
226 P: AFS_READ | AFS_WRITE
227 D: Copy audio file selector info.
228 U: cpsi [-a] [-y] [-i] [-l] [-n] [-v] source pattern...
229 H: If no option, or only the -v option is given, all fields of
230 H: the audio file selector info are copied to all files
231 H: matching pattern. Otherwise, only the given options are
232 H: taken into account.
236 H: -a Copy attributes.
238 H: -y Copy the lyrics id.
240 H: -i Copy the image id.
242 H: -l Copy the lastplayed time.
244 H: -n Copy the numplayed count.
249 P: AFS_READ | AFS_WRITE
250 D: Activate a mood or a playlist.
251 U: select specifier/name
252 H: The specifier is either 'm' or 'p' to indicate whether a playlist or
253 H: a mood should be activated. Example:
257 H: loads the mood named 'foo'.
261 O: int com_add@member@(struct command_context *cc);
262 P: AFS_READ | AFS_WRITE
263 D: Read data from stdin and add it as a blob to the @member@ table.
264 U: add@member@ @member@_name
265 H: Read arbitrary binary data from stdin and send that data to
266 H: the audio file selector process which creates a new blob for
267 H: the data in the corresponding osl table.
269 H: The names of the blobs of a table are unique. If an entry with the
270 H: given name already exists, its contents are replaced by the new data.
274 O: int com_cat@member@(struct command_context *cc);
276 D: Dump the contents of a blob of type @member@ to stdout.
277 U: cat@member@ @member@_name
278 H: This command may be used to retrieve the blob identified by
279 H: the given name from the corresponding osl table to which
280 H: they were previously added.
284 O: int com_ls@member@(struct command_context *cc);
286 D: List blobs of type @member@ matching a pattern.
287 U: ls@member@ [-i] [-l] [-r] [pattern]
288 H: Print a list of the names of all blobs in the corresponding
289 H: osl table which match the given pattern. If no pattern is
290 H: given, the full list is printed.
294 H: -i Sort attributes by id. The default is to sort
295 H: alphabetically by name.
297 H: -l Print a long listing containing both identifier and
298 H: attribute name. The default is to print only the name.
300 H: -r Reverse sort order.
304 O: int com_rm@member@(struct command_context *cc);
305 P: AFS_READ | AFS_WRITE
306 D: Remove blob(s) of type @member@ from the @member@ table.
307 U: rm@member@ pattern...
308 H: Remove all blobs from the corresponding table which match
309 H: any given pattern.
313 O: int com_mv@member@(struct command_context *cc);
314 P: AFS_READ | AFS_WRITE
315 D: Rename a blob of type @member@.
316 U: mv@member@ old_@member@_name new_@member@_name
317 H: Rename the blob identified by the first name as the second name.