libmpd-0.10.0.1: An MPD client library.
Copyright(c) Joachim Fasting 2012
LicenseMIT
MaintainerJoachim Fasting <joachifm@fastmail.fm>
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.MPD.Commands.Extensions

Description

Extensions and shortcuts to the standard MPD command set.

Synopsis

Documentation

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.

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.