ebook-tools
ebook-tools copied to clipboard
metadata related error
Hello,
I'm running the docker container in an UnRAID environment, spun it up and managing it with Portainer.
command used is
docker run -it -v /blahblah:/unorganized -v /blahblahblah:/organized ebooktools/scripts:latest
then within the container
$ organize-ebooks.sh -v /unorganized -o /organized
which gets me
Recursively scanning '/unorganized' for files [/unorgani..cence - Lyn Macdonald.epub] Testing '/unorganized/5k books/1915 The Death of Innocence - Lyn Macdonald.epub' for corruption... [/unorgani..cence - Lyn Macdonald.epub] The file has a '.epub' extension, testing with 7z... [/unorgani..cence - Lyn Macdonald.epub] File passed the corruption test, looking for ISBNs... [/unorgani..cence - Lyn Macdonald.epub] Searching file '/unorganized/5k books/1915 The Death of Innocence - Lyn Macdonald.epub' for ISBN numbers... [/unorgani..cence - Lyn Macdonald.epub] Ebook MIME type: application/zip [/unorgani..cence - Lyn Macdonald.epub] This application failed to start because it could not find or load the Qt platform plugin "headless" [/unorgani..cence - Lyn Macdonald.epub] in "/usr/lib/calibre/calibre/plugins". [/unorgani..cence - Lyn Macdonald.epub] [/unorgani..cence - Lyn Macdonald.epub] Reinstalling the application may fix this problem. [/unorgani..cence - Lyn Macdonald.epub] ERROR on line 569 /ebook-tools/lib.sh! [/unorgani..cence - Lyn Macdonald.epub] ERROR on line 569 /ebook-tools/lib.sh! [/unorgani..cence - Lyn Macdonald.epub] ERROR on line 296 /ebook-tools/organize-ebooks.sh! ERROR on line 311 /ebook-tools/organize-ebooks.sh!
So, a bunch of things:
- file is epub but is being recognized as "application/zip"
- 'could not find or load the Qt platform plugin "headless"'
- ERROR lib.sh line 569 (
ebookmeta="$(ebook-meta "$file_path")"
) - ERROR on organize-ebooks.sh line 296 (
isbns="$(search_file_for_isbns "$file_path")"
) - ERROR on organize-ebooks.sh line 311 ('for fpath in "$@"; do')
See my response to https://github.com/na--/ebook-tools/issues/14 -- not sure, but it's possible that pull request mentioned in there will help.