libmpd-0.9.0.6: 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.Database

Description

The music database.

Synopsis

- count :: Query -> Command Count
- find :: Query -> Command [Song]
- findAdd :: Query -> Command ()
- list :: Metadata -> Maybe Artist -> Command [Value]
- listAll :: Path -> Command [Path]
- lsInfo' :: Command -> Path -> Command [LsResult]
- listAllInfo :: Path -> Command [LsResult]
- lsInfo :: Path -> Command [LsResult]
- search :: Query -> Command [Song]
- searchAdd :: Query -> Command ()
- searchAddPl :: PlaylistName -> Query -> Command ()
- update :: Maybe Path -> Command Integer
- rescan :: Maybe Path -> Command Integer
- update_ :: Command -> Maybe Path -> Command Integer

# Documentation

count :: Query -> Command Count

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

find :: Query -> Command [Song]

Find songs matching the query exactly.

findAdd :: Query -> Command ()

Like `find` but adds the results to the current playlist.

list :: Metadata -> Maybe Artist -> Command [Value]

Lists all tags of the specified type.

Note that the optional artist value is only ever used if the metadata type is `Album`, and is then taken to mean that the albums by that artist be listed.

listAll :: Path -> Command [Path]

List all songs and directories in a database path.

lsInfo' :: Command -> Path -> Command [LsResult]

listAllInfo :: Path -> Command [LsResult]

Same as `listAll` but also returns metadata.

lsInfo :: Path -> Command [LsResult]

List the contents of a database directory.

search :: Query -> Command [Song]

Like `find` but with inexact matching.

searchAdd :: Query -> Command ()

Like `search` but adds the results to the current playlist.

Since MPD 0.17.

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

Like `searchAdd` but adds results to the named playlist.

Since MPD 0.17.

update :: Maybe Path -> Command Integer

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

rescan :: Maybe Path -> Command Integer

Like `update` but also rescan unmodified files.

update_ :: Command -> Maybe Path -> Command Integer