libmpd-0.9.2.0: An MPD client library.

Copyright(c) Joachim Fasting 2012
LicenseMIT
Maintainerjoachifm@fastmail.fm
Stabilitystable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Network.MPD.Applicative.CurrentPlaylist

Description

The current playlist.

Synopsis

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 :: (Position, Position) -> Command () Source #

Delete a range of songs from the playlist.

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 :: (Position, Position) -> Position -> Command () Source #

Move a range of songs.

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 (Position, Position) -> Command [Song] Source #

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

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 -> (Position, Position) -> Command () Source #

Set the priority of the specified songs.

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

Set priority by song id.

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

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

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.