libmpd-0.10.0.1: 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

- addMany :: MonadMPD m => PlaylistName -> [Path] -> m ()
- addIdMany :: MonadMPD m => Path -> Maybe Position -> m [Id]
- 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

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.