15 дец 2020 draai 20201215
draai — manage playlists and play audio files
draai [option [option ...]] command [track [track ...] | tracknumber [tracknumber ...]]
Play music: the files given as args and playlists passed via --playlist.
Run watch(1) on "draai peek".
Start a bunch of X terminals setting up some draai jobs: tail, logtail, watch, syslog, ...
Reschedule listed tracknumbers as upcoming tracks. Last arguments should be the positions of tracks to be put on the guestlist, not filenames.
Reschedule listed tracknumbers to end of playlist.
Add file(s) (given either as args or on stdin) to playlist and schedule it as upcoming track. You probably want to have 'draai insert' read from a pipe fed by 'draai search'.
Move tracknumber to tracknumber given as last argument.
Move tracknumber to position one and immediately start playing it. Typically used to deal with radiostations in playlist.
Search for substrings in all song tag types (artist, title, comment, filename, ...). Similar to 'mpc search any <query>'. You'll typically want to pipe this commands output to e.g. 'draai insert'.
Print information about track when it starts playing, similar to tail -f on a logfile.
Run tail(1) on system log file.
List current playlist.
Show status of current song, and show upcoming $peek FIXME tracks.
Play music.
Send raw information from tail to syslog. You likely want to run "draai syslog" in the background.
Skip this track, start playing the next one now.
Run this if unwanted silence pops up during a playing session (for now, it runs draai --sloppy skip).
Delete track(s) from current playlist. Last arguments should be _positions_ of tracks to be removed, not filename. If no position is given, deletes upcoming track from playlist.
Seek forward in current track.
Play louder.
Play softer.
Shuffle the playlist. By default, this task is delegated to dr_unsort(1). However, if draai runs in "sloppy" or in "native shuffle" mode, then mpc native shuffling is done (by calling "mpc shuffle"). Draai runs in "sloppy" mode when the DR_SLOPPY environment variable is set, or when the --sloppy option is passed. Draai runs in "native shuffle" mode when the DR_SHUFFLE_NATIVE environment variable is set.
List all files as served by music database.
Add file(s) (given either as args or on stdin) to playlist. You probably want to have 'draai add' read from a pipe fed by e.g. 'draai listall' or 'draai search'.
quit
Be very verbose.
Playlist file; option can be supplied more than once. To be used with command "draai".
Do not shuffle tracks and leave random mode untouched (default is: do shuffle and disable random mode). See also the script dr_unsort.
Print raw stuff, suitable for postprocessing (if combined with tail, peek or list).
Do not try hard to make everything sound smooth. If combined with skip: risk a squeak on old hardware.
If combined with commands quit or draai: time at which to quit or start.