-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically add books in a directory #2
Comments
Thank you for using this application. At the present time, we need to manually input metadata of a book (title, author, etc.) to register into this application. To realize automatic registration of multiple books, we need to implement a function to extract metadata from a book file. |
EPUB is actually a zip archive with XML documents inside. Metadata stored in XML document too. PDF is a binary format. I would suggest unipdf package to extract metadata from it. Take a look on examples - https://github.com/unidoc/unipdf-examples/tree/master/metadata |
Currently bookshelf support the following file formats: azw3, epub, fb2, mobi, pdf, txt. How about azw3, fb2, and mobi? I'm going to implement this feature for future release. |
I found packages for mobi and fb2: |
I don't know any suitable package for azw3 format, but it can be possible to convert azw3 to fb2 and use fb package to extract metadata. |
To add to this feature request, it would be nice to recursively scan a directory, even to just barely populate the database with filename, size, and sha256. I've already scanned all the books and built a json file full of metadata, and I could very easily update the bookshelf database with missing metadata either by directly editing the database or using the API |
Other, currently updated https://github.com/karantin2020/go-fb2 or https://github.com/vdovindima/fb2 or https://github.com/rupor-github/fb2converter also provides |
It would be nice to automatically add books in a directory. Now it is possible to add book one by one manually. It's time consuming and boring.
P.S. First of all thanks for sharing source code of bookshelf! It looks very promising. I don't like Calibre and wants something to build OPDS catalog with my books, bookshelf looks interesting.
The text was updated successfully, but these errors were encountered: