]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.cmd
Implement com_cpsi().
[paraslash.git] / afs.cmd
diff --git a/afs.cmd b/afs.cmd
index f29eae078e4f61d3197e6051e303f4970ec02398..14ee589150e8123eface07aa51d7de8b2cc8f546 100644 (file)
--- a/afs.cmd
+++ b/afs.cmd
@@ -17,6 +17,9 @@ H: are added recursively.
 H:
 H: Options:
 H:
+H: -a  Add all files. The default is to add only files ending in a known suffix
+H:     for a supported audio format.
+H:
 H: -l  Add files lazily. If a file already exists in the database, skip this file.
 H:     This operation is really cheap. Use it when adding large directories if only a
 H:     few files where added.
@@ -73,7 +76,7 @@ H:            -si:  sort by image id.
 H:
 H:             -sy:  sort by lyrics id.
 H:
-H:             -sb:  sort by bitrate.
+H:             -sb:  sort by bit rate.
 H:
 H:             -sd:  sort by duration.
 H:
@@ -103,7 +106,7 @@ U: setatt attribute{+|-}... pattern
 H: Set ('+') or unset ('-') the given attributes for all audio files matching
 H: pattern.  Example:
 H:
-H:         sa rock+ punk+ classic- '*foo.mp3'
+H:         setatt rock+ punk+ classic- '*foo.mp3'
 H:
 H: sets the 'rock' and the 'punk' attribute but unsets the 'classic'
 H: attribute of all files ending with 'foo.mp3'.
@@ -125,7 +128,7 @@ H:
 H: Options:
 H:
 H: -a  Run audio file table checks. Checks for entries in the audio file
-H:     table which are not present in the filesystem. Moreover, it checks
+H:     table which are not present in the file system. Moreover, it checks
 H:     whether the lyrics id and all entries in the audio file table are
 H:     valid.
 H:
@@ -164,7 +167,7 @@ H:  a slash (see fnmatch(3)).
 ---
 N: touch
 P: AFS_READ | AFS_WRITE
-D: Manupulate the afs data for all audio files matching a pattern.
+D: Manipulate the afs data for all audio files matching a pattern.
 U: touch [-n numplayed] [-l lastplayed] [-y lyrics_id] [-i image_id] [-v] [-p] pattern
 H: If no option is given, lastplayed is set to the current time and numplayed is
 H: increased by one. Otherwise, only the given options are taken into account.
@@ -175,7 +178,7 @@ H: -n       Set numplayed count. The number of times afs has selected this
 H:     audio file for streaming.
 H:
 H: -l  Set lastplayed time. The last time this audio file was selected.
-H:     Must be given as the number of sectonds since the epoch. Example:
+H:     Must be given as the number of seconds since the epoch. Example:
 H:
 H:             touch -l $(date +%s) file
 H:
@@ -193,6 +196,28 @@ H:         in pattern and not by an asterisk (*) or a question mark
 H:     (?) metacharacter, nor by a bracket expression ([]) containing
 H:     a slash (see fnmatch(3)).
 ---
+N: cpsi
+P: AFS_READ | AFS_WRITE
+D: Copy audio file selector info.
+U: cpsi [-a] [-y] [-i] [-l] [-n] [-v] source pattern...
+H: If no option, or only the -v option is given, all fields of the audio file
+H: selector info are copied to all files matching pattern.  Otherwise, only the
+H: given options are taken into account.
+H:
+H: Options:
+H:
+H: -a  Copy attributes.
+H:
+H: -y  Copy the lyrics id.
+H:
+H: -i  Copy the image id.
+H:
+H: -l  Copy the lastplayed time.
+H:
+H: -n  Copy the numplayed count.
+H:
+H: -v  Verbose mode.
+---
 T: add
 N: add@member@
 O: int com_add@member@(int fd, int argc, char * const * const argv);