Add albumart command
Add API documentation Support 64 bit offsets Use InputStream for all reads
This commit is contained in:
@@ -1573,6 +1573,42 @@ OK
|
||||
<title>The music database</title>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry id="album_art">
|
||||
<term>
|
||||
<cmdsynopsis>
|
||||
<command>albumart</command>
|
||||
<arg choice="req"><replaceable>URI</replaceable></arg>
|
||||
<arg choice="req"><replaceable>OFFSET</replaceable></arg>
|
||||
</cmdsynopsis>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Searches the directory the file <varname>URI</varname>
|
||||
resides in and attempts to return a chunk of an album
|
||||
art image file at offset <varname>OFFSET</varname>.
|
||||
</para>
|
||||
<para>
|
||||
Uses the filename "cover" with any of ".png, .jpg,
|
||||
.tiff, .bmp".
|
||||
</para>
|
||||
<para>
|
||||
Returns the file size and actual number
|
||||
of bytes read at the requested offset, followed
|
||||
by the chunk requested as raw bytes, then a
|
||||
newline and the completion code.
|
||||
</para>
|
||||
<para>
|
||||
Example:
|
||||
</para>
|
||||
|
||||
<programlisting>albumart
|
||||
size: 1024768
|
||||
binary: 8192
|
||||
<8192 bytes>
|
||||
OK
|
||||
</programlisting>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="command_count">
|
||||
<term>
|
||||
|
Reference in New Issue
Block a user