mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2663 (0.6b7 breaks bulk conversion)
This commit is contained in:
parent
a4c2560602
commit
f4ec00a9d9
@ -115,18 +115,20 @@ def convert_bulk_ebook(parent, db, book_ids, out_format=None):
|
|||||||
out_file.close()
|
out_file.close()
|
||||||
temp_files = []
|
temp_files = []
|
||||||
|
|
||||||
|
lrecs = list(recs)
|
||||||
|
|
||||||
if d.opf_file is not None:
|
if d.opf_file is not None:
|
||||||
recs.append(('read_metadata_from_opf', d.opf_file.name,
|
lrecs.append(('read_metadata_from_opf', d.opf_file.name,
|
||||||
OptionRecommendation.HIGH))
|
OptionRecommendation.HIGH))
|
||||||
temp_files.append(d.opf_file)
|
temp_files.append(d.opf_file)
|
||||||
if d.cover_file is not None:
|
if d.cover_file is not None:
|
||||||
recs.append(('cover', d.cover_file.name,
|
lrecs.append(('cover', d.cover_file.name,
|
||||||
OptionRecommendation.HIGH))
|
OptionRecommendation.HIGH))
|
||||||
temp_files.append(d.cover_file)
|
temp_files.append(d.cover_file)
|
||||||
|
|
||||||
desc = _('Convert book %d of %d (%s)') % (i + 1, total, repr(mi.title))
|
desc = _('Convert book %d of %d (%s)') % (i + 1, total, repr(mi.title))
|
||||||
|
|
||||||
args = [in_file, out_file.name, recs]
|
args = [in_file, out_file.name, lrecs]
|
||||||
temp_files.append(out_file)
|
temp_files.append(out_file)
|
||||||
jobs.append(('gui_convert', args, desc, d.output_format.upper(), book_id, temp_files))
|
jobs.append(('gui_convert', args, desc, d.output_format.upper(), book_id, temp_files))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user