Commit a1ae455c authored by Max Kellermann's avatar Max Kellermann

doc/protocol.rst: make the `albumart` documentation more generic

parent 7a1b56fe
...@@ -782,11 +782,12 @@ The music database ...@@ -782,11 +782,12 @@ The music database
================== ==================
:command:`albumart {URI} {OFFSET}` :command:`albumart {URI} {OFFSET}`
Searches the directory the file ``URI`` Locate album art for the given song and return a chunk of an album
resides in and attempts to return a chunk of an album
art image file at offset ``OFFSET``. art image file at offset ``OFFSET``.
Uses the filename "cover" with any of ".png, .jpg,
.tiff, .bmp". This is currently implemented by searching the directory the file
resides in for a file called :file:`cover.png`, :file:`cover.jpg`,
:file:`cover.tiff` or :file:`cover.bmp`.
Returns the file size and actual number Returns the file size and actual number
of bytes read at the requested offset, followed of bytes read at the requested offset, followed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment