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