Bulk Metadata "Set from ebook file(s)" when no cover image doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
calibre version: 2.3[64bit]
Windows-8-6.2.9200 Windows
This is the case when there's no cover image and it should render the first page of each book.
To recreate, start with book(s) without covers, or remove covers from a few test books using Modify ePub. Do bulk metadata edit, choose Change Cover, Set from &ebook file(s).
cover_from_format in single metadata does this fine, as does calling calibre.
But args.cover_action == 'fromfmt' in metadata_bulk.py doesn't.
I've traced it down into calibre.
I wanted to offer a patch, but I'm too unclear what the best solution would be.
Qt can only be used in the main thread of the program, bulk metadata
runs in its own worker thread, thefre you have the issue.
What needs to be done is, if is_ok_to_use_qt() returns False, you have
to launch a worker process using fork_job() and render the cover in
that.
If you wish to create a patch, fell free, otherwise I will get around
to it when I have some time.