jelu
jelu copied to clipboard
Errors importing books
Hi! I tried importing a goodreads export and ran into some issues. It errors out on a great number of isbns, not sure why. The error message doesn't inform me much into what I could do to fix this issue. I'm attaching a goodreads export and my log (I killed the process after the errors were repetitive). log.txt goodreads_library_export.csv
Hi !
I think there are 2 parts in your issue :
- First the goodreads csv import discards lines that don't have an isbn
That is why you see in the log lines like :
Missing isbn for line with goodreadsId 201889, title City of Illusions (Hainish Cycle, #3) and author Ursula K. Le Guin, import it yourself manually
- Second, can you tell me if you have provided the path to the fetch-ebook-metadata binary in config ? (it is the jelu.metadata.calibre.path property that is described here https://bayang.github.io/jelu-web/configuration/)
If not, that is the cause to those errors :
java.lang.NullPointerException: null
at io.github.bayang.jelu.service.metadata.FetchMetadataService.fetchMetadata(FetchMetadataService.kt:41) ~[classes!/:0.17.1]
During csv import Jelu tries to call the binary to automatically fetch metadata but the config is empty so it generates an exception.
This is definitely a bug, and I'll fix this.
So, if you want to import your data, you can either disable online metadata fetching and cover fetching (untick the boxes in the import page to get rid of the error) or you can install the tool that is needed if not already installed and you get bonus metadata on import.
The binary is this one : https://manual.calibre-ebook.com/fr/generated/fr/fetch-ebook-metadata.html
And you can easily get it by installing calibre if you are running the jar (it is preinstalled in the docker image so that is not an issue with docker).
This is also a documentation issue, this part should be more obvious.
You can open an extra issue in the documentation repo if you want.