Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9be14bbe
Commit
9be14bbe
authored
Jul 06, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/protocol.xml: document the lsinfo response
parent
d47f37f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
1 deletion
+59
-1
protocol.xml
doc/protocol.xml
+59
-1
No files found.
doc/protocol.xml
View file @
9be14bbe
...
...
@@ -213,6 +213,59 @@
a UTF-8 string.
</para>
</section>
<section
id=
"other_metadata"
>
<title>
Other Metadata
</title>
<para>
The response to
<link
linkend=
"command_lsinfo"
><command>
lsinfo
</command></link>
and
similar commands may contain
<link
linkend=
"tags"
>
song
tags
</link>
and other metadata, specifically:
</para>
<itemizedlist>
<listitem>
<para>
<varname>
duration
</varname>
: the duration of the song in
seconds; may contain a fractional part.
</para>
</listitem>
<listitem>
<para>
<varname>
time
</varname>
: like
<varname>
duration
</varname>
,
but as integer value. This is deprecated and is only here
for compatibility with older clients. Do not use.
</para>
</listitem>
<listitem>
<para>
<varname>
Range
</varname>
: if this is a queue item
referring only to a portion of the song file, then this
attribute contains the time range in the form
<parameter>
START-END
</parameter>
or
<parameter>
START-
</parameter>
(open ended); both
<parameter>
START
</parameter>
and
<parameter>
END
</parameter>
are time stamps within the song
in seconds (may contain a fractional part). Example:
"
<parameter>
60-120
</parameter>
" plays only the second
minute; "
<parameter>
180
</parameter>
" skips the first three
minutes.
</para>
</listitem>
<listitem>
<para>
<varname>
Last-Modified
</varname>
: the time stamp of the
last modification of the underlying file in ISO 8601
format. Example:
"
<parameter>
2008-09-28T20:04:57Z
</parameter>
"
</para>
</listitem>
</itemizedlist>
</section>
</chapter>
<chapter
id=
"recipes"
>
...
...
@@ -1874,7 +1927,12 @@ OK
<listitem>
<para>
Lists the contents of the directory
<varname>
URI
</varname>
.
<varname>
URI
</varname>
. The response contains records
starting with
<varname>
file
</varname>
,
<varname>
directory
</varname>
or
<varname>
playlist
</varname>
, each followed by metadata
(
<link
linkend=
"tags"
>
tags
</link>
or
<link
linkend=
"other_metadata"
>
other metadata
</link>
).
</para>
<para>
When listing the root directory, this currently returns
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment