libmpd-0.10.0.1: 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 :: Range -> Command ()
- deleteId :: Id -> Command ()
- move :: Position -> Position -> Command ()
- moveId :: Id -> Position -> Command ()
- moveRange :: Range -> Position -> Command ()
- playlistFind :: Query -> Command [Song]
- playlistInfo :: Maybe Position -> Command [Song]
- playlistInfoRange :: Maybe Range -> Command [Song]
- playlistId :: Maybe Id -> Command [Song]
- playlistSearch :: Query -> Command [Song]
- plChanges :: Integer -> Command [Song]
- plChangesPosId :: Integer -> Command [(Position, Id)]
- prio :: Priority -> Range -> Command ()
- prioId :: Priority -> Id -> Command ()
- shuffle :: Maybe Range -> Command ()
- swap :: Position -> Position -> Command ()
- swapId :: Id -> Id -> Command ()
- addTagId :: Id -> Metadata -> Value -> Command ()
- clearTagId :: Id -> Metadata -> Command ()
- rangeId :: Id -> (Maybe Double, Maybe Double) -> Command ()

# Documentation

add :: Path -> Command () Source #

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

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

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

clear :: Command () Source #

Clear the current playlist.

delete :: Position -> Command () Source #

Delete song at the given playlist position.

deleteRange :: Range -> Command () Source #

Delete a range of songs from the playlist.

Since: 0.10.0.0

deleteId :: Id -> Command () Source #

Delete song by id.

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

Move song from one position to another.

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

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

moveRange :: Range -> Position -> Command () Source #

Move a range of songs.

Since: 0.10.0.0

playlistFind :: Query -> Command [Song] Source #

Find songs in current playlist with strict matching.

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

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

playlistInfoRange :: Maybe Range -> Command [Song] Source #

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

Since: 0.10.0.0

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

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

playlistSearch :: Query -> Command [Song] Source #

Search case-insensitively for partial matches in current playlist.

plChanges :: Integer -> Command [Song] Source #

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

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

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

prio :: Priority -> Range -> Command () Source #

Set the priority of the specified songs.

Since: 0.10.0.0

prioId :: Priority -> Id -> Command () Source #

Set priority by song id.

shuffle :: Maybe Range -> Command () Source #

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

Since: 0.10.0.0

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

Swap songs by position.

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

Swap songs by id.

addTagId :: Id -> Metadata -> Value -> Command () Source #

Add tag to specified (remote) song.

clearTagId :: Id -> Metadata -> Command () Source #

Remove tag from specified (remote) song.

rangeId :: Id -> (Maybe Double, Maybe Double) -> Command () Source #

Specify portion of song that shall be played. Both ends of the range are optional; omitting both plays everything.

Since MPD 0.19.