DOKK / manpages / debian 12 / mpdtoys / mpinsert.1.en
MPINSERT(1) mpinsert MPINSERT(1)

mpinsert - insert song after currently playing song

mpinsert [-n] [song ...]

mpinsert inserts a song (or songs) into the playlist directly after the currently playing song.

If no songs are specified on the command line, it will read a list from stdin.

Songs may be specified the same as they would be to mpc add: As paths to files in the music database, or urls to stream.

You can also enter the name of a playlist, or part of the name of an album, artist, or song. Matching items will be added to the playlist.

(If the perl String::Approx module is available, it will be used to handle typos, etc in the names you enter.)

Print the playlist position number that the first song was inserted at.
Play the song after inserting it.

Copyright 2007-2009 Joey Hess <joey@kitenet.net>

Licensed under the GNU GPL version 2 or higher.

http://kitenet.net/~joey/code/mpdtoys

2023-02-01 perl v5.36.0