paracusia v0.2.11 Paracusia.MpdClient.Reflection
Provides information about MPD's configuration, available permissions etc.
See also: https://musicpd.org/doc/protocol/reflection_commands.html
Link to this section Summary
Functions
Returns a mapping between decoder plugins and their supported suffixes and MIME types
Returns a list of commands the current user does not have access to
Returns a list of commands the current user has access to
Returns a list of available song metadata
Returns a list of available URL handlers
Link to this section Functions
Link to this function
decoders()
decoders()
decoders() :: {:ok, map()} | Paracusia.MpdTypes.mpd_error()
decoders() :: {:ok, map()} | Paracusia.MpdTypes.mpd_error()
Returns a mapping between decoder plugins and their supported suffixes and MIME types.
Example response
{:ok, %{
"dsf" => %{mime_types: ["application/x-dsf"], suffixes: ["dsf"]},
"ffmpeg" => %{mime_types: ["application/flv", "application/m4a", ...]
suffixes: ["16sv", "3g2", "3gp", "4xm", "8svx", "aa3", "aac", ...]},
"flac" => %{mime_types: ["application/flac", "application/x-flac", ...],
suffixes: ["flac"]},
... }
}
Link to this function
forbidden_commands()
forbidden_commands()
forbidden_commands() :: {:ok, [String.t()]} | Paracusia.MpdTypes.mpd_error()
forbidden_commands() :: {:ok, [String.t()]} | Paracusia.MpdTypes.mpd_error()
Returns a list of commands the current user does not have access to.
Link to this function
permitted_commands()
permitted_commands()
permitted_commands() :: {:ok, [String.t()]} | Paracusia.MpdTypes.mpd_error()
permitted_commands() :: {:ok, [String.t()]} | Paracusia.MpdTypes.mpd_error()
Returns a list of commands the current user has access to.
Link to this function
tag_types()
tag_types()
tag_types() :: {:ok, [String.t()]} | Paracusia.MpdTypes.mpd_error()
tag_types() :: {:ok, [String.t()]} | Paracusia.MpdTypes.mpd_error()
Returns a list of available song metadata.
Link to this function
url_handlers()
url_handlers()
url_handlers() :: {:ok, [String.t()]} | Paracusia.MpdTypes.mpd_error()
url_handlers() :: {:ok, [String.t()]} | Paracusia.MpdTypes.mpd_error()
Returns a list of available URL handlers.