urschrei / pyzotero

Pyzotero: a Python client for the Zotero API
https://pyzotero.readthedocs.org
Other
908 stars 99 forks source link

Added powerpoint fileformat to prevent that pptx files are interpreted as json and fail retrieval. #135

Closed ghost closed 3 years ago

ghost commented 3 years ago

I noticed that when a Zotero item has a powerpoint as an attachment the retrieval using zot.dump() or zot.file() would fail with the error *** json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0).

Turns out the content type for presentations was not in the format dictionary. I simply added that format, now powerpoint files can be retrieved as well.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 47.318% when pulling aea7e92381f67c57c6ca6ad4c582f5687966bf9c on ba-tno:dev into 9b0d7176becca3370c433bdd0c70d474677f5a65 on urschrei:dev.