dnlbauer / sync_zotero_remarkable

sync zotero collections to a remarkable tablet
Other
43 stars 5 forks source link

Filename is not identified correctly #3

Closed errotu closed 3 years ago

errotu commented 3 years ago

I've set up a WebDav-configuration by now. Unfortunately, a new error occurs:

Processing files

Full Text PDF download, unzip,Traceback (most recent call last): File ".local/bin/sync_zotero_rm", line 101, in zip.extract(title, path=tempdir.name) File "/usr/lib/python3.8/zipfile.py", line 1630, in extract return self._extract_member(member, path, pwd) File "/usr/lib/python3.8/zipfile.py", line 1669, in _extract_member member = self.getinfo(member) File "/usr/lib/python3.8/zipfile.py", line 1441, in getinfo raise KeyError( KeyError: "There is no item named 'Full Text PDF' in the archive"

It seems like the script is looking for a file with the name of the title it has in Zotero, not with the actual filename (which is in this case: [Author] - [Year] - [Title].pdf)

dnlbauer commented 3 years ago

Interesting. for my setup title and filename returns the same value. Thanks for the PR, I will merge it :+1: