Copyright | (c) Joachim Fasting 2012 |
---|---|
License | MIT |
Maintainer | joachifm@fastmail.fm |
Stability | stable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
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
addId :: Path -> Maybe Position -> Command Id Source #
Add a song (non-recursively) and return its id.
deleteRange :: (Position, Position) -> Command () Source #
Delete a range of songs from the playlist.
moveId :: Id -> Position -> Command () Source #
Move song id to position. If the position is negative, it is relative to the current song.
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.