Network.MPD.Commands.Extensions

libmpd-0.6.0: An MPD client library.

Stability | alpha
Maintainer | Joachim Fasting <joachim.fasting@gmail.com>

Network.MPD.Commands.Extensions

Description

Extensions and shortcuts to the standard MPD command set.

Synopsis

- updateId :: MonadMPD m => [Path] -> m Integer
- toggle :: MonadMPD m => m ()
- addMany :: MonadMPD m => PlaylistName -> [Path] -> m ()
- listArtists :: MonadMPD m => m [Artist]
- listAlbums :: MonadMPD m => Maybe Artist -> m [Album]
- listAlbum :: MonadMPD m => Artist -> Album -> m [Song]
- getPlaylist :: MonadMPD m => m [Song]
- volume :: MonadMPD m => Int -> m ()

# Documentation

updateId :: MonadMPD m => [Path] -> m Integer

Like `update`, but returns the update job id.

toggle :: MonadMPD m => m ()

Toggles play/pause. Plays if stopped.

addMany :: MonadMPD m => PlaylistName -> [Path] -> m ()

Add a list of songs/folders to a playlist. Should be more efficient than running `add` many times.

listArtists :: MonadMPD m => m [Artist]

Delete a list of songs from a playlist. If there is a duplicate then no further songs will be deleted, so take care to avoid them (see `prune` for this).

List the artists in the database.

listAlbums :: MonadMPD m => Maybe Artist -> m [Album]

List the albums in the database, optionally matching a given artist.

listAlbum :: MonadMPD m => Artist -> Album -> m [Song]

List the songs in an album of some artist.

getPlaylist :: MonadMPD m => m [Song]

Retrieve the current playlist. Equivalent to `playlistinfo Nothing`.

volume :: MonadMPD m => Int -> m ()

Increase or decrease volume by a given percent, e.g. 'volume 10' will increase the volume by 10 percent, while 'volume (-10)' will decrease it by the same amount.