libmpd-0.9.0.7: An MPD client library.

Copyright | (c) Joachim Fasting 2012
License | MIT
Maintainer | Joachim Fasting <joachifm@fastmail.fm>
Stability | unstable
Portability | unportable
Safe Haskell | None
Language | Haskell2010

Network.MPD.Commands.Extensions

Description

Extensions and shortcuts to the standard MPD command set.

Synopsis

- updateId :: MonadMPD m => Maybe Path -> m Integer
- toggle :: MonadMPD m => m ()
- addMany :: MonadMPD m => PlaylistName -> [Path] -> m ()
- addIdMany :: MonadMPD m => Path -> Maybe Position -> m [Id]
- addList :: MonadMPD m => Path -> m [Path]
- playlistAddList :: MonadMPD m => PlaylistName -> Path -> m [Path]
- 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 => Maybe Path -> m Integer #

Deprecated: use `update` instead

This is exactly the same as `update`.

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.

addIdMany :: MonadMPD m => Path -> Maybe Position -> m [Id] #

Recursive `addId`. For directories, it will use the given position for the first file in the directory and use the successor for the remaining files. It returns a list of playlist ids for the songs added.

addList :: MonadMPD m => Path -> m [Path] #

Deprecated: will be removed in a future version

Like `add` but returns a list of the files added.

playlistAddList :: MonadMPD m => PlaylistName -> Path -> m [Path] #

Deprecated: will be removed in a future version

Like `playlistAdd` but returns a list of the files added.

listArtists :: MonadMPD m => m [Artist] #

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.