libmpd-0.9.0.9: An MPD client library.

Copyright(c) Joachim Fasting 2012
LicenseMIT
MaintainerJoachim Fasting <joachifm@fastmail.fm>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Network.MPD.Commands.Extensions

Description

Extensions and shortcuts to the standard MPD command set.

Synopsis

Documentation

updateId :: MonadMPD m => Maybe Path -> m Integer Source #

Deprecated: use update instead

This is exactly the same as update.

toggle :: MonadMPD m => m () Source #

Toggles play/pause. Plays if stopped.

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

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] Source #

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] Source #

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] Source #

Deprecated: will be removed in a future version

Like playlistAdd but returns a list of the files added.

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

List the artists in the database.

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

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

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

List the songs in an album of some artist.

getPlaylist :: MonadMPD m => m [Song] Source #

Retrieve the current playlist. Equivalent to playlistinfo Nothing.

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

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.