1 FN: mysql_selector_command_list
2 HC: prototypes for the commands of the mysql audio file selector
3 CC: array of commands for the mysql audio file selector
6 SN: list of mysql selector commands
11 S: cam source dest1 [dest2 ...]
12 H: Copy attributes and other meta data from source file to destination
13 H: file(s). Useful for files that have been renamed.
20 H: Create database name containing the initial columns for basic
21 H: interoperation with server. This command has to be used only once
22 H: when you use the mysql audio file selector for the very first time.
24 H: The optional name defaults to 'paraslash' if not given.
28 D: nuke invalid entries in database
30 H: If the vrfy command shows you any invalid entries in your database,
31 H: you can get rid of them with clean. Always run 'upd' and 'vrfy'
32 H: before running this command. Use with caution!
35 P: VSS_WRITE | DB_READ | DB_WRITE
38 H: Selects stream s or prints current stream when s was not given.
41 P: VSS_WRITE | DB_READ
42 D: change stream and play
44 H: Select stream s and start playing. If this results in a
45 H: stream-change, skip rest of current audio file.
49 D: drop attribute from database
51 H: Use with caution. All info on attribute att will be lost.
57 H: Print list of all audio files together with number of days since
58 H: each file was last played.
62 D: print database info
64 H: print database informations for audio file af. Current audio file
65 H: is used if af is not given.
71 H: List attributes of audio file af or of current audio file when
72 H: invoked without arguments.
76 D: list available attributes
78 H: print list of all attributes defined in the database
82 D: print list of audio files, ordered by lastplayed time
84 H: The optional number n defaults to 10 if not specified.
88 D: list all audio files that match a LIKE pattern
90 H: If pattern was not given, print list of all audio files known
91 H: to the mysql selector. See the documentation of mysql
92 H: for the definition of LIKE patterns.
96 D: dump audio file list in mbox format
98 H: Dump list of audio files in mbox format (email) to stdout. If
99 H: the optional pattern p is given, only those audio files,
100 H: whose basename match p are going to be included. Otherwise,
101 H: all files are selected.
104 H: The mbox command can be used together with your favorite
105 H: mailer (this example uses mutt) for browsing the audio file
108 H: para_client mbox > ~/para_mbox
110 H: mutt -F ~/.muttrc.para -f ~/para_mbox
112 H: For playlists, you can use mutt's powerful pattern matching
113 H: language to select files. If you like to tag all files
114 H: containing the pattern 'foo', type 'T', then '~s foo'.
116 H: When ready with the list, type ';|' (i.e., hit the semicolon
117 H: key to apply the next mutt command to all tagged messages,
118 H: then the pipe key) to pipe the selected mails to a
119 H: suitable script which adds a paraslash stream where exactly
120 H: these files are admissable or does whatever thou wilt.
123 P: DB_READ | DB_WRITE
124 D: rename entry in database
125 S: mv oldname newname
126 H: Rename oldname to newname. This updates the data table to reflect
127 H: the new name. All internal data (numplayed, lastplayed, picid,..)
128 H: is kept. If newname is a full path, the dir table is updated as
132 P: DB_READ | DB_WRITE
133 D: add new attribute to database
135 H: This adds a column named att to your mysql database. att should
136 H: only contain letters and numbers, in paricular, '+' and '-' are
140 P: DB_READ | DB_WRITE
141 D: add new database entries
142 S: ne file1 [file2 [...]]
143 H: Add the given filename(s) to the database, where file1,... must
144 H: be full path names. This command might be much faster than 'upd'
145 H: if the number of given files is small.
148 P: VSS_WRITE | DB_READ | DB_WRITE
149 D: change to next stream
151 H: Cycle forwards through stream list.
155 D: get picture by name or by identifier
157 H: Dump jpg image that is associated to given audio file (current
158 H: audio file if not specified) to stdout. If name starts with
159 H: '#' it is interpreted as an identifier instead and the picture
160 H: having that identifier is dumped to stdout.
164 H: para_client pic '#123' > pic123.jpg
167 P: DB_READ | DB_WRITE
168 D: add picture to database
170 H: Read jpeg file from stdin and store it as picname in database.
174 H: para_client picadd foo.jpg < foo.jpg
177 P: DB_READ | DB_WRITE
178 D: associate a picture to file(s)
179 S: picass pic_id file1 [file2...]
180 H: Associate the picture given by pic_id to all given files.
183 P: DB_READ | DB_WRITE
184 D: change name of picture
186 H: Asign new_name to picture with identifier id.
189 P: DB_READ | DB_WRITE
190 D: delete picture from database
191 S: picdel id1 [id2...]
192 H: Delete each given picture from database.
196 D: print list of pictures
198 H: Print id, name and length of each picture contained in the
202 P: VSS_WRITE | DB_READ | DB_WRITE
203 D: change to previous stream
205 H: Cycle backwards through stream list.
208 P: DB_READ | DB_WRITE
209 D: remove entries from database
210 S: rm name1 [name2 [...]]
211 H: Remove name1, name2, ... from the data table. Use with caution.
214 P: DB_READ | DB_WRITE
215 D: set/unset attributes
216 S: sa at1<'+' | '-'> [at2<'+' | '-'> ] [af1 ...]
217 H: Set ('+') or unset ('-') attribute at1, at2 etc. for given list of
218 H: audio files. If no audio files were given the current audio file is
221 H: sa rock+ punk+ classic- LZ__Waldsterben.mp3
223 H: sets the 'rock' and the 'punk' attribute but unsets the 'classic'
227 P: DB_READ | DB_WRITE
228 D: skip subsequent audio files(s)
230 H: Skip the next n audio files of stream s. This is equivalent to the
231 H: command 'sl n s', followed by 'us name' for each name the output of
238 H: Print sorted list of maximal n lines. Each line is an admissible
239 H: entry with respect to stream s. The list is sorted by score-value
240 H: which is given by the definition of s. If s is not given, the
241 H: current stream is used. Example:
245 H: shows you the audio file the server would select right now.
248 P: DB_READ | DB_WRITE
250 S: snp number af1 [af2 ...]
251 H: Update the numplayed field in the data table for all given audio
255 P: DB_READ | DB_WRITE
258 H: Add stream s to the list of available streams. The stream
259 H: definition for s is read from stdin and is then sent to
260 H: para_server. Example:
262 H: echo 'deny: NAME_LIKE(%Madonna%)' | para_client stradd no_madonna
264 H: adds the new stream 'no_madonna' to the list of available streams.
265 H: A given audio file is admissible for this stream iff its basename
266 H: does not contain the string 'Madonna'.
269 P: DB_READ | DB_WRITE
272 H: Remove stream s from database.
278 H: Print list of available streams. Use 'cs' to switch to any of
283 D: query stream definition
285 H: Print definition of stream s to stdout. Use current stream if s was
292 H: Print a list of attributes together with number of audio
293 H: files having that attribute set.
296 P: DB_READ | DB_WRITE
299 H: This command uses the --audio_file_dir option of para_server to
300 H: locate your audio files. New files are then added to the mysql
301 H: database. Use this command if you got new files or if you have
302 H: moved some files around.
305 P: DB_READ | DB_WRITE
306 D: update lastplayed time
308 H: Update lastplayed time without actually playing the thing.
311 P: DB_READ | DB_WRITE
312 D: send verbatim sql query
314 H: Send cmd to mysql server. For expert/debugging only. Note that cmd
315 H: usually must be escaped. Use only if you know what you are doing!
319 D: list invalid entries in database
321 H: Show what clean would delete. Run 'upd' before this command to make
322 H: sure your database is up to date.