libmpd-0.10.0.1: An MPD client library.
Copyright(c) Joachim Fasting 2012
LicenseMIT
Maintainerjoachifm@fastmail.fm
Stabilitystable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.MPD.Applicative.Database

Description

The music database.

Synopsis

Documentation

count :: Query -> Command Count Source #

Get a count of songs and their total playtime that exactly match the query.

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

Find songs matching the query exactly.

findAdd :: Query -> Command () Source #

Like find but adds the results to the current playlist.

list :: Metadata -> Query -> Command [Value] Source #

List all tags of the specified type of songs that that satisfy the query.

Since: 0.10.0.0

listAll :: Path -> Command [Path] Source #

List all songs and directories in a database path.

listAllInfo :: Path -> Command [LsResult] Source #

Same as listAll but also returns metadata.

lsInfo :: Path -> Command [LsResult] Source #

List the contents of a database directory.

readComments :: Path -> Command [(String, String)] Source #

Read comments from the file at the specified path.

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

Like find but with case insensitive matching.

searchAdd :: Query -> Command () Source #

Like search but adds the results to the current playlist.

searchAddPl :: PlaylistName -> Query -> Command () Source #

Like searchAdd but adds results to the named playlist.

update :: Maybe Path -> Command Integer Source #

Update the music database. If no path is supplied, the entire database is updated.

rescan :: Maybe Path -> Command Integer Source #

Like update but also rescan unmodified files.