Network.MPD.Applicative.CurrentPlaylist

libmpd-0.9.0.7: An MPD client library.

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

Network.MPD.Applicative.CurrentPlaylist

Description

The current playlist.

Synopsis

- add :: Path -> Command ()
- addId :: Path -> Maybe Position -> Command Id
- clear :: Command ()
- delete :: Position -> Command ()
- deleteRange :: (Position, Position) -> Command ()
- deleteId :: Id -> Command ()
- move :: Position -> Position -> Command ()
- moveId :: Id -> Position -> Command ()
- moveRange :: (Position, Position) -> Position -> Command ()
- playlistFind :: Query -> Command [Song]
- playlistInfo :: Maybe Position -> Command [Song]
- playlistInfoRange :: Maybe (Position, Position) -> Command [Song]
- playlistId :: Maybe Id -> Command [Song]
- playlistSearch :: Query -> Command [Song]
- plChanges :: Integer -> Command [Song]
- plChangesPosId :: Integer -> Command [(Position, Id)]
- shuffle :: Maybe (Position, Position) -> Command ()
- swap :: Position -> Position -> Command ()
- swapId :: Id -> Id -> Command ()

# Documentation

add :: Path -> Command () #

Add a song (or a whole directory) to the current playlist.

addId :: Path -> Maybe Position -> Command Id #

Add a song (non-recursively) and return its id.

clear :: Command () #

Clear the current playlist.

delete :: Position -> Command () #

Delete song at the given playlist position.

deleteRange :: (Position, Position) -> Command () #

Delete a range of songs from the playlist.

deleteId :: Id -> Command () #

Delete song by id.

move :: Position -> Position -> Command () #

Move song from one position to another.

moveId :: Id -> Position -> Command () #

Move song id to position. If the position is negative, it is relative to the current song.

moveRange :: (Position, Position) -> Position -> Command () #

Move a range of songs.

playlistFind :: Query -> Command [Song] #

Find songs in current playlist with strict matching.

playlistInfo :: Maybe Position -> Command [Song] #

Get song metadata for all items in the current playlist. Optionally restrict listing the song at the given position.

playlistInfoRange :: Maybe (Position, Position) -> Command [Song] #

Like `playlistInfo` but can restrict listing to a range of songs.

playlistId :: Maybe Id -> Command [Song] #

Get song metadata for all items in the current playlist. Optionally restrict selection to a single song id.

playlistSearch :: Query -> Command [Song] #

Search case-insensitively for partial matches in current playlist.

plChanges :: Integer -> Command [Song] #

Get song metadata for items that have changed in the playlist since the given playlist version.

plChangesPosId :: Integer -> Command [(Position, Id)] #

Get positions and ids of songs that have changed in the playlist since the given playlist version.

shuffle :: Maybe (Position, Position) -> Command () #

Shuffle the current playlist. Optionally restrict to a range of songs.

swap :: Position -> Position -> Command () #

Swap songs by position.

swapId :: Id -> Id -> Command () #

Swap songs by id.