Repository navigation
v0.9.2
fetch now accepts an attachment's own key, and a fetch that saves nothing tells you why.
- Attachment keys work.
zotkit fetch --key <attachment key>used to printdownloaded 0 file(s)and exit 0, because an attachment has no file-bearing children. It now downloads that attachment's file and notes the parent on stderr:note: K is an attachment of P; fetching this attachment's file. Agents often pick up attachment keys from WebDAV filenames,attachoutput, or Zotero links. Detection adds no request on the normal path: the item itself is only looked up when its children carry no files. - Nothing saved means exit 1, with a reason. The possible reasons are
has no stored file attachments,N file attachment(s) found, none could be downloaded, andnot found (404). The 404 line is sanitized likeshow's, so it never prints the library ID.--title/--collectionwith no matching items is an error too. Scripts that treateddownloaded 0 file(s)+ exit 0 as success should check the exit code. - The Python API's
Zot.fetch()is unchanged.Zot.fetch_detail()andZot.file_attachments()expose the extra detail.
174 offline tests; CI (ubuntu + windows × 3.11/3.13) gates the publish.